Closed ricejasonf closed 3 years ago
This is interesting but I do not necessarily see a problem. Many Scheme's do handle the top-level environment like Chibi but not all of them (EG: chicken csc).
For the purposes of writing portable code I would not rely on behavior of the top-level continuation.
For the purposes of writing portable code I would not rely on behavior of the top-level continuation.
I'll go with that, and I thank you for your response.
No problem, thanks for the report :)
I noticed a discrepancy between Cyclone and other Schemes with the way they handle continuations at the top level of the program. It appears that Cyclone (via the wasm interpreter) will allow the escape procedure to resume execution at the continuation at the top level.
In contrast ChibiScheme seems to delimit the continuations execution at the end of the current top level expression. Racket behaves this way as well.
Which is correct for R7RS? I can't seem to find a definitive answer or any information in the revised standard.
Cyclone output:
Chibi output: