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:
Justin Ethier 2020-07-09 13:17:39 -04:00
parent a9b333c490
commit f0aa3343b7
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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