|
I've read the following text on LuaFiveFeatures at www.lua-users.org wiki:
- declaration of globals: we introduced global declarations: global a,b,c global a,b,c in T global in T -- change the default So, "global in nil" forces declarations for every variable; "global in {}" puts all undeclared variables into a private table; "global sin, cos in math" allows the unqualified use of the names "sin" and "cos".
Apparently this has not gone into Lua 5.0. The interpreter complains as "global" was not a keyword (which is not according to the reference manual). Have these features been postponed?Is there some workaround in the current Lua version for these functionalities?
Regards, Adriano. -- Adriano