|
On Wed, Nov 4, 2009 at 3:45 PM, Geoff Leyland wrote: >> function b() >> local t = pack(pcall(a)); >> if not r[1] then error("something") end >> return unpack(r, 2, r.n) >> end The above solutions and others are cataloged in http://lua-users.org/wiki/VarargTheSecondClassCitizen (Vararg Saving).