Skip to content

Add support for coroutines #51

@LinqLover

Description

@LinqLover

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions