lua-users home
lua-l archive

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


2011/10/10 steve donovan <steve.j.donovan@gmail.com>:
> On Mon, Oct 10, 2011 at 3:07 PM, Julien Duminil
> <julien.duminil@ubisoft.com> wrote:
>> So the idea would become:
>> - *_G* replaced by *_ENV* (remove *_G* in Lua 5.2?)
>
> Ah, but they are not _always_ identical, not so?
>
True, but _G is not _necessary_.  It's just a convenient
name for storing the original value of _ENV which (unlike
_ENV) Lua itself does not change.

>> - *arg* replaced by *...* (AFAIK, removed in Lua 5.2?)
>
> Would we then still be able to access arg[0] or even arg[-1] ??
>

arg in Lua5.2 is a predefined table set by the interpreter to hold
the commandline parameters.  But its previous meaning as a
table containing the same stuff as ... has indeed been removed.

Dirk