[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 25 Feb 2010 09:45:06 -0300
> 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