lua-users home
lua-l archive

Re: '...' is a variable,who can explain

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


On Fri, 2007年01月12日 at 17:00 +1100, David Burgess wrote:
> It does raise the question of whether
> type(...)
> should return a value?
I believe it should.
After all, f(...) means "call the function 'f' passing it the unpacked,
unclaimed argument set" (approximately)
so type(...) would return the type of the first unclaimed argument in a
new-style vararg function.
D.
-- 
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895

AltStyle によって変換されたページ (->オリジナル) /