lua-users home
lua-l archive

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

On 5/11/2009, at 9:35 AM, Patrick Donnelly wrote:


function b()
 local t = pack(pcall(a));
 if not r[1] then error("something") end
 return unpack(r, 2, r.n)

(this is what Roberto's code meant to be I think)

Note there is no closure cost here.

Right.  Thanks again.