Re: xpcall function with arguments
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: xpcall function with arguments
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年11月29日 08:48:02 -0200
> 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