mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Issue #363 - Explicitly call halt for programs.
This avoids issues with invoking the continuation for `set!` expressions on the last line of a program.
This commit is contained in:
parent
a9b333c490
commit
f0aa3343b7
2 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@ Bug Fixes
|
|||
|
||||
- Fixed a bug in the oprimized numeric comparison operators when comparing a double with a bignum, that could lead to undefined behavior.
|
||||
- Fixed `make_empty_bytevector` and `make_c_opaque` parameters on `(cyclone foreign)`.
|
||||
- Avoid compilation errors when a program ends with a `set!` expression.
|
||||
|
||||
## 0.18 - June 8, 2020
|
||||
|
||||
|
|
|
@ -568,7 +568,7 @@ if (acc) {
|
|||
(program?
|
||||
;; This is the main program, keep top level.
|
||||
;; Use 0 here (and below) to ensure a meaningful top-level
|
||||
`((begin 0 ,@(reverse exprs)))
|
||||
`((begin 0 ,@(reverse exprs) (%halt 0)))
|
||||
)
|
||||
(else
|
||||
;; This is a library, keep inits in their own function
|
||||
|
|
Loading…
Add table
Reference in a new issue