diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-05-03 08:54:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-05-03 08:54:14 -0700 |
commit | 542f3e3bb66011d8041af5684ed64ed581ece635 (patch) | |
tree | 68699db03000a1f043fde0afdc970aef266eedf4 | |
parent | c536fa0d3c1d25260522a0f69a46b1dade973ffc (diff) | |
download | txr-542f3e3bb66011d8041af5684ed64ed581ece635.tar.gz txr-542f3e3bb66011d8041af5684ed64ed581ece635.tar.bz2 txr-542f3e3bb66011d8041af5684ed64ed581ece635.zip |
compiler: top-level is in load-time.
* share/txr/stdlib/compiler.tl (compile-toplevel): Bind
*load-time* to t, because of course initially we are in the
top level, where load-time can be eliminated.
-rw-r--r-- | share/txr/stdlib/compiler.tl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl index 9b0c0334..88792259 100644 --- a/share/txr/stdlib/compiler.tl +++ b/share/txr/stdlib/compiler.tl @@ -1614,7 +1614,8 @@ (let ((co (new compiler)) (as (new assembler)) (*dedup* (or *dedup* (hash)))) - (let* ((oreg co.(alloc-treg)) + (let* ((*load-time* t) + (oreg co.(alloc-treg)) (xexp (if expanded-p exp (unwind-protect |