summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-05-03 08:54:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-05-03 08:54:14 -0700
commit542f3e3bb66011d8041af5684ed64ed581ece635 (patch)
tree68699db03000a1f043fde0afdc970aef266eedf4
parentc536fa0d3c1d25260522a0f69a46b1dade973ffc (diff)
downloadtxr-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.tl3
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