lua-users home
lua-l archive

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


> 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 {...}.