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 Mon, May 7, 2012 at 7:39 AM, Craig Barnes <[email protected]> wrote:
On 7 May 2012 06:04, Emeka <[email protected]> wrote:
> However, I have a question, what is _G? And, why is it empty when I try it
> on the shell?
>
> Regards, \Emeka