lua-users home
lua-l archive

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


On Tue, Apr 26, 2011 at 11:13 AM, Jakob Voss <jakob.voss@gbv.de> wrote:
> t = table.pack(...)
> t = {...}; t.n = #t

Not quite. You were probably thinking of this:

function pack(...)
  return {...,n = select('#',...)}
end

steve d.