summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/txr/stdlib/compiler.tl2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/txr/stdlib/compiler.tl b/share/txr/stdlib/compiler.tl
index a10f4f14..d58ed2c3 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -244,6 +244,8 @@
(t
(compile-error form "unrecognized special operator ~s" sym))))
((bindable sym) me.(comp-fun-form oreg env form))
+ ((and (consp sym)
+ (eq (car sym) 'lambda)) me.(compile oreg env ^(call ,*form)))
(t (compile-error form "invalid operator")))))))
(defmeth compiler comp-atom (me oreg form)