[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Accessing supermodule with require
- From: Minh Ngo <mkngo87@...>
- Date: Fri, 23 May 2014 06:25:26 -0400
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