lua-users home
lua-l archive

Re: xpcall(f arguments?,f error)

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


Hi Thomas,
thank you for your idea to enhance xpcall be myself. I overlooked this
possibility. I prefer to stay compatible with the original behaviour and
enhance it like this: (untested)
 local Function=xpcall
 function xpcall(Call,Error,...)
 return Function(function() return Call(unpack(arg)) end,Error)
 end
--
Markus

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