diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-05-03 20:10:58 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-05-03 20:10:58 -0700 |
commit | cb183ed2c2ae7e5fc58a884dee681a0e843da21e (patch) | |
tree | ba3950484b6b3084916514f6cb793f707a785d2c | |
parent | d59fe717b97c4ff76ccf45e8c9652eb045f0c2ea (diff) | |
download | txr-cb183ed2c2ae7e5fc58a884dee681a0e843da21e.tar.gz txr-cb183ed2c2ae7e5fc58a884dee681a0e843da21e.tar.bz2 txr-cb183ed2c2ae7e5fc58a884dee681a0e843da21e.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.
-rw-r--r-- | share/txr/stdlib/compiler.tl | 4 |
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)))))) |