[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.2 #... proposal and patch.
- From: Tim Mensch <tim-lua-l@...>
- Date: Mon, 09 May 2011 16:01:39 -0600
On 5/9/2011 3:41 PM, Luiz Henrique de Figueiredo wrote:
>> 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 {...}.
Ahh, got it, thanks. Didn't occur to me because I'm not fond of sending
nil arguments explicitly.
Tim
- 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
- Re: Lua 5.2 #... proposal and patch., Luiz Henrique de Figueiredo