From: Bob Rogers <[EMAIL PROTECTED]> Date: Mon, 2 Oct 2006 20:54:22 -0400
This weekend's project (committed as r14830) makes continuations capture the dynamic environment so that they can restore it properly on invocation. This makes it possible for multiple continuations to coexist that return to different environments in the same context. One word of caution, though: I had also wanted to move the control_stack slot from the context to the interpreter, but found that doing so breaks coroutines rather severely . . . So this logical next step is on hold for now. Done as r14876. However, I strongly suspect that coroutines are still broken in ways that are not detected by the test suite -- therefore, please let me know if your favorite app develops a coroutine allergy. This is still true, but I'm pretty sure I haven't made coroutines any less functional. -- Bob