lua-users home
lua-l archive

Re: xpcall function with arguments

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


> Am I missing something or is this "impossible"?
> [...]
> xpcall(func, err, ...)
Currently you need a closure:
 xpcall(function () func(...) end, err)
> Would it be possible in a future version of Lua [...]
Yes.
-- Roberto

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