lua-users home
lua-l archive

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


Lua has this neat syntax for relative submodules: require(.....".foo").
Wondering if anyone else uses these?

e.g.

-- file foo.lua
local bar = require(.....".bar")
local M = {bar = bar}
return M

-- file foo/bar.lua
local M = {}
return M