mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 20:45:06 +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 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)`.
|
- 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
|
## 0.18 - June 8, 2020
|
||||||
|
|
||||||
|
|
|
@ -568,7 +568,7 @@ if (acc) {
|
||||||
(program?
|
(program?
|
||||||
;; This is the main program, keep top level.
|
;; This is the main program, keep top level.
|
||||||
;; Use 0 here (and below) to ensure a meaningful top-level
|
;; Use 0 here (and below) to ensure a meaningful top-level
|
||||||
`((begin 0 ,@(reverse exprs)))
|
`((begin 0 ,@(reverse exprs) (%halt 0)))
|
||||||
)
|
)
|
||||||
(else
|
(else
|
||||||
;; This is a library, keep inits in their own function
|
;; This is a library, keep inits in their own function
|
||||||
|
|
Loading…
Add table
Reference in a new issue