lua-users home
lua-l archive

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

Am 29.11.2010 18:42, schrieb steve donovan:
On Mon, Nov 29, 2010 at 7:19 PM, Frank Meier-Dörnberg<>  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...

I didn't find it, but for sure "...[1]" "...[2]" was already discussed in a long threat too.
-- Frank (who will be silent now again)