lua-users home
lua-l archive

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

>-----Original Message-----
>From: Edgar Toernig []
>Sent: Friday, September 03, 2004 5:21 PM
>To: Lua list
>Subject: Re: Lua 5.1w crash bug -- '...' related
>Bilyk, Alex wrote:
>> Is this wishing to much as to being able to say something to 
>the tune of 
>> function f(...)
>> 	for k in (...) do
>> 		print ((...)[k])
>> 	end
>> end
>Well, you can already write that but it may not do exactly what
>you expect.  Try  f{11,22,33}

This defeats the purpose as it involves new table, which is available as 'arg' in vararg functions to begin with. The value of ... construct is that it avoids creation of a new table. Anyway, I got what I want in 'select'.

>Ciao, ET.