Issue #462 - Properly handle top-level vectors

This commit is contained in:
Justin Ethier 2021-07-09 22:57:23 -04:00
parent bf19dcd417
commit 02b892211c
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,11 @@
# Changelog
## 0.31.0 - TBD
Bug Fixes
- Properly handle literal vectors at the top level of compiled code.
## 0.30.0 - July 2, 2021
Features

View file

@ -597,6 +597,7 @@ if (acc) {
;; global may still be init'd to NULL if the order is incorrect in the "top level"
;; initialization code.
(symbol? (car (define->exp (car top-lvl)))) ;; TODO: put these at the end of top-lvl???
(vector? (car (define->exp (car top-lvl))))
(and (list? (car (define->exp (car top-lvl))))
(not (lambda? (car (define->exp (car top-lvl)))))))
(loop (cdr top-lvl)