Re: Stack trace of errored coroutines?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Stack trace of errored coroutines?
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2004年2月27日 16:48:34 -0300
> 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