[parrot/parrot] 27e36b: [pmc] Clarify dead coroutines
noreply at github.com
Mon Oct 6 16:22:36 UTC 2014
Author: Reini Urban <rurban at cpanel.net>
Date: 2014-10-06 (Mon, 06 Oct 2014)
[pmc] Clarify dead coroutines
Coros are not resumable when all yield states are exhausted.
This is consistent with the LUA design, which we follow, and all other
coro implementations I know of. Just the parrot book argues that after a
return the state should be automatically reset. Technically no problem, even
without the quirks described in https://github.com/parrot/parrot/issues/564#issuecomment-3503597
or via a seperate reset() method, but semantically an auto-reset is problematic.
Added testcases for all the relevant tickets: #564, #585 and there is on
bug remaining: TT #1003 leading to Null PMC access in get_string on a dead coro
More information about the parrot-commits