A global variable (not a function) that holds the global environment (see §2.2). Lua itself does not use this variable; changing its value does not affect any environment, nor vice-versa.
The above is still confusing, what is it used for? And why is it there at all?
On 7 May 2012 06:04, Emeka <emekamicro@gmail.com> wrote:
> However, I have a question, what is _G? And, why is it empty when I try it
> on the shell?
>
> Regards, \Emeka