lua-users home
lua-l archive

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


> Is there a fundamental reason why coroutines cannot have error functions?

No. But, as you pointed out, it cannot be done with pcall. The right way
to correct that would be to change the lua_resume function so that it
accepts an error function (just like lua_pcall does). We plan to correct
it in Lua 5.1.

-- Roberto