lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there an easy way to do the following without making a global variable?

`
@/foo.lua
local foo = {}
foo.bar = require("foo.bar")
return foo

@/foo/bar/init.lua
local bar = {}
-- bar.foo = ??? "foo" table reference
return bar
`

Seems a pain in the butt with not being able to acess the supermodule.
--
Minh Ngo