lua-users home
lua-l archive

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


> in other words... how does one build a proper vararg at runtime with
> nil values and all which is unpack friendly?!?!?

  t = {n = 0}
  ...
  t.n = t.n + 1; t[t.n] = v;
  ...
  foo(unpack(t, 1, t.n))

?

-- Roberto