lua-users home
lua-l archive

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


It was thus said that the Great Ahmed Charles once stated:
> 
> My intent is to have ‘global’ (the exact keyword used matters less) be an
> explicit maker of which variables should have _ENV. prepended. I.e. it
> doesn’t change the byte code emitted for any existing program, it would
> only require adding a declaration for each error issued during load.

  So why not use '_ENV.' in place of 'global'?  It's already supported by
Lua, and it makes it *very* easy to locate the use of global variables.

  -spc (Or maybe Roberto and Co. can change the name of _ENV to global?)
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org