Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for coroutines #51

Open
LinqLover opened this issue Mar 14, 2022 · 0 comments
Open

Add support for coroutines #51

LinqLover opened this issue Mar 14, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@LinqLover
Copy link
Owner

Example:

(Simulator evaluate: [Generator on: [:s | s nextPutAll: #(1 2 3)]]) next.

This currently raises a Computation has been terminated! from this stack:

image

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant