summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-05-03 20:10:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-05-03 20:10:58 -0700
commit4356adb0d4747673384d38f35479c8a484687861 (patch)
treeba3950484b6b3084916514f6cb793f707a785d2c /share
parentd7e61d9fd142b867388f930907a099e7b132e76a (diff)
downloadtxr-4356adb0d4747673384d38f35479c8a484687861.tar.gz
txr-4356adb0d4747673384d38f35479c8a484687861.tar.bz2
txr-4356adb0d4747673384d38f35479c8a484687861.zip
compile: don't expand.
The compile function doesn't need to expand because the input is a function that has already been expanded. * share/txr/stdlib/compiler.tl (compile): Pass the second argument to compile-toplevel to suppress expansion.
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/compiler.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index 4d776296..108c75b4 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -1871,14 +1871,14 @@
(fun (tree-bind (indicator args . body) (func-get-form obj)
(let* ((form (sys:env-to-let (func-get-env obj)
^(lambda ,args ,*body)))
- (vm-desc (compile-toplevel form)))
+ (vm-desc (compile-toplevel form t)))
(vm-execute-toplevel vm-desc))))
(t (condlet
(((fun (symbol-function obj)))
(tree-bind (indicator args . body) (func-get-form fun)
(let* ((form (sys:env-to-let (func-get-env fun)
^(lambda ,args ,*body)))
- (vm-desc (compile-toplevel form))
+ (vm-desc (compile-toplevel form t))
(comp-fun (vm-execute-toplevel vm-desc)))
(set (symbol-function obj) comp-fun))))
(t (error "~s: cannot compile ~s" 'compile obj))))))