lua-users home
lua-l archive

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



I wonder if there's an argument, on larger projects, for something like:

====

--global.lua

return {}

====

--myappfiles*.lua

local global = require"global"

-- Init
global.foo = 123

-- etc...

====

Leaving _G to the standard libs.

Scott

why not just

local global = _G

?

Oliver