lua-users home
lua-l archive

Re: Issues with the current varargs implementation (Was: Re: inadequate documentation for select and table.unpack)

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


> fargs, nargs = {...}, select('#', ...)
That's a job for table.pack:
	fargs = table.pack(...)
	nargs = fargs.n
One of the motivations for table.pack.

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