lua-users home
lua-l archive

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


Is there a general accepted list of globals and their definitions somewhere?

 

Obviously there are;  _G,  _VERSION

 

And for inside module tables there are the ones (not such a solid list) mentioned here; http://lua-users.org/wiki/ModuleVersioning

 

 

Reason for asking; in busted ( http://olivinelabs.com/busted/ ) a global  ‘_TEST’ has been in use in the recent released versions. Its use is to allow modules to export additional local/private functions or tables upon requiring them, so they can be tested (only when _TEST ~= nil ).

 

Question was raised whether this global should be moved to ‘busted._TEST’. Personally I would favor some sort of global agreement on the use of these generic globals, such that in this case also other test suites could use the same global for the same purpose.

 

Would be nice to create a wiki page on this, listing the common ones and their use.

 

regards

Thijs