lua-users home
lua-l archive

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


Hi, all!

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.

For example:

   pcall(foo, arg1, arg2)

but

   xpcall(function() return foo(arg1, arg2) end, debug.traceback)

I see that this issue was discussed here before:

   http://lua-users.org/lists/lua-l/2004-08/msg00265.html

What is the current official position for this feature request? Can calls like

   xpcall(err_handler, fn, ...)

be allowed in 5.2?

Thanks,
Alexander.