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...")
 
 
Line 1: Line 1:
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.)  
+
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.)  
  
 
[http://www.lua.org/manual/5.1/manual.html#pdf-_G Lua 5.1 Manual _G]
 
[http://www.lua.org/manual/5.1/manual.html#pdf-_G Lua 5.1 Manual _G]
  
 
[http://www.lua.org/manual/5.1/manual.html#2.9 Lua 5.1 Manual - Environments]
 
[http://www.lua.org/manual/5.1/manual.html#2.9 Lua 5.1 Manual - Environments]

Latest revision as of 10:45, 9 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