[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Passing function arguments to xpcall
- From: "Alexander Gladysh" <agladysh@...>
- Date: Wed, 2 Aug 2006 17:59:22 +0400
Wanted to use xpcall, and found that it does not accept any arguments
to the function. This is very incomfortable, as I have to create extra
wrapper function to pass arguments.
pcall(foo, arg1, arg2)
xpcall(function() return foo(arg1, arg2) end, debug.traceback)
I see that this issue was discussed here before:
What is the current official position for this feature request? Can calls like
xpcall(err_handler, fn, ...)
be allowed in 5.2?