On May 30, 2006, at 21:57, Klaas-Jan Stol wrote:
I was investigating a possible implementation of the "reset" method for coroutine.pmc, but I encountered the following: if the coroutine is called more times than the coroutine ".yield()s", it segfaults
Yep. That's very much related to the proposed .reset() method. Currently a coroutine shouldn't fall off through .return() as this case is just not implemented. A reasonable approach to handle that is IMHO to do a reset for that case, which would need some adapations in RetContinuation.invoke to check, if a Coro was left.
leo