[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua 5.1 (alpha): vararg and unpack?
- From: PA <petite.abeille@...>
- Date: Fri, 2 Sep 2005 21:52:42 +0200
Hello,
How does the new vararg fits with unpack()? Is unpack() still necessary
to pass vararg around? Or can I pass them directly?
For example, in Pre-5.1 (alpha):
local function Call( anObject, ... )
return anObject:new( unpack( arg ) )
end
In 5.1 (alpha):
local function Call( anObject, ... )
return anObject:new( ... )
end
What gives?
TIA!
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/