Add support for coroutines
LinqLover opened this issue · comments
Christoph Thiede commented
Example:
(Simulator evaluate: [Generator on: [:s | s nextPutAll: #(1 2 3)]]) next.
This currently raises a Computation has been terminated!
from this stack:
The VM refuses to execute the simulation context. One approach would be to override swapSender:
and continue the execution in the simulator when a simulation context is inserted. However, it might be hard to detect all possible context manipulations and execute not more than a reasonable part of the stack in the simulator.