lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Forgive me if this is a stupid question, but is _ENV going to be a
> real variable that's accessible from the script, or a hidden
> "internal" variable? If it's a real variable, forgive a second stupid
> question: why not assign it to _G instead? I'm not trying to
> second-guess anyone, I'm just honestly not sure I understand the
> current situation.

_ENV is a real variable in all senses. We though about using _G, but
that would create a needless incompatibility for code that manipulates
_G.  Apart from that, _G is as good a name as any other.

-- Roberto