[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 25 Feb 2010 18:13:31 +0200
On Thu, Feb 25, 2010 at 6:09 PM, Peter Cawley <lua@corsix.org> wrote:
> Hence I would remove _G. Once _G is removed, the next obvious step is
> to rename _ENV to _G in order to maintain as much compatibility as
> possible with 5.1.
But it's a different animal; renaming it will just perpetuate
confusion. One is a goat and the other is a sheep.
Using _G specially refers to the global namespace; _ENV may or may not.
_G is not assignable; _ENV is.