lua-users home
lua-l archive

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

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.