[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 #... proposal and patch.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 9 May 2011 18:41:42 -0300
> local arg = {...}
>
> ...since table.pack was introduced in 5.2.
>
> I missed the discussion talking about WHY table.pack was introduced,
> though I'm guessing that it can be made to be faster?
No. {...} loses nils at the end of the vararg list. In other words,
the *number* of args received is lost when you do {...}.
- References:
- Lua 5.2 #... proposal and patch., Benoit Germain
- Re: Lua 5.2 #... proposal and patch., GrayFace
- Re: Lua 5.2 #... proposal and patch., Benoit Germain
- Re: Lua 5.2 #... proposal and patch., Tony Finch
- Re: Lua 5.2 #... proposal and patch., Benoit Germain
- Re: Lua 5.2 #... proposal and patch., Tony Finch
- Re: Lua 5.2 #... proposal and patch., HyperHacker
- Re: Lua 5.2 #... proposal and patch., Henk Boom
- Re: Lua 5.2 #... proposal and patch., Eduardo Ochs
- Re: Lua 5.2 #... proposal and patch., Tim Mensch