Difference between revisions of "G"

From OpenEUO
Jump to: navigation, search
(Created page with "A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environm...")
(No difference)

Revision as of 17:49, 7 October 2010

A global variable (not a function) that holds the global environment (that is, _G._G = _G). Lua itself does not use this variable; changing its value does not affect any environment, nor vice-versa. (Use setfenv to change environments.)

Lua 5.1 Manual _G

Lua 5.1 Manual - Environments