lua-users home
lua-l archive

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


On Wed, 21 Jan 2009, Petite Abeille wrote:

On Jan 21, 2009, at 12:17 AM, Leo Razoumov wrote:

How to achieve such assurances short of wrapping everything else in a pcall (xpcall)?

What's wrong with pcall?


For starters, pcall/xpcall do not play nicely with coroutines. You cannot yield across pcall/xpcall function boundaries.
This problem is addressed with coxpcall module in Kepler
but it is not part of official Lua distribution.

--Leo--