lua-users home
lua-l archive

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


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.