lua-users home
lua-l archive

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


Michael Roth said:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Rici Lake wrote:
>
>> In any event, there are few use cases for finding the argument count
>> which
>> do not involve iterating over the arguments; I would far rather have:
>>
>>   for i, arg in ieach(...) do process(arg) end
>
> Hmm, could not be written with the ... operator but a table (classic
> 'arg' style) must be created:

See http://lua-users.org/lists/lua-l/2005-09/msg00037.html