[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: Peter Cawley <lua@...>
- Date: Thu, 25 Feb 2010 16:18:14 +0000
On Thu, Feb 25, 2010 at 4:13 PM, steve donovan
<steve.j.donovan@gmail.com> wrote:
> Using _G specially refers to the global namespace; _ENV may or may not.
Using _G refers to _ENV._G, hence if you've changed _ENV, then _G
refers to the global namespace if and only if you added a _G field to
the custom _ENV pointing back to the original value of _ENV. If you
haven't changed _ENV, then _G and _ENV are the same thing anyway.