lua-users home
lua-l archive

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


Hi,

Diego favors modules which register themselves with _G no matter what. But at least they return themselves as well:

I actually would rather they didn't register themselves with _G. What I
favour is the mechanism setup by module() that makes any globals
declared by the module fall inside the namespace. I also favour each
module returning its namespace.

[]s,
Diego.