lua-users home
lua-l archive

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


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/