[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua-5.1-alpha: length operator on tables (arrays) and nil values
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 13 Sep 2005 21:12:56 -0300
> function pack(...)
> return arg
> end
>
> t = pack()
>
> print(t.n) ---> "0"
>
>
> Is the arg.n field inside vararg functions by design?
The use of "arg" inside vargars function is only supported for compatibility.
If you need a table with all args, use {...}. No need for pack.
--lhf