lua-users home
lua-l archive

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


On Sun, Jul 11, 2010 at 1:41 PM, GrayFace <sergroj@mail.ru> wrote:
> IMO, after _ENV is introduced, the old _G is redundant. _ENV supersedes it.
> So, won't it be better to keep the name _G instead of _ENV? It's shorter.

But, it's different. _G always refers to global scope, _ENV refers to
current 'environment'. So it would be confusing to change the meaning
of _G.