lua-users home
lua-l archive

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


On Mon, Nov 29, 2010 at 7:19 PM, Frank Meier-Dörnberg <frank@md-web.de> wrote:
> $2 - $1 - x --> return arg[2] - arg[1] - x
> -- Frank (who finally couldn't resist)

Alas, but arg is deprecated in Lua 5.1, luajit doesn't support it and
lua 5.2 definitely doesn't.

... is better, but it is not indexable.  I suppose you could say
(select(2,...)) but that's rather heavy...