summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-17 06:55:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-17 06:55:13 -0700
commit22774201563c6ef587898891419b49b3c809fb93 (patch)
treec2dd978237637d4b32a0dc9d06e8b66007e714f6 /share
parentf564f9a7d4c5c660f6603682d5019249ed8c809b (diff)
downloadtxr-22774201563c6ef587898891419b49b3c809fb93.tar.gz
txr-22774201563c6ef587898891419b49b3c809fb93.tar.bz2
txr-22774201563c6ef587898891419b49b3c809fb93.zip
op: add comment why cadr is not used.
* share/txr/stdlib/op.tl (sys:op-expand): Comment added. We cannot use cadr because that triggers autoload of cadr.tl, which uses defplace, which requires place.tl, which requires op, which is what we are in the middle of defining.
Diffstat (limited to 'share')
-rw-r--r--share/txr/stdlib/op.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/txr/stdlib/op.tl b/share/txr/stdlib/op.tl
index 809a7f09..182055f0 100644
--- a/share/txr/stdlib/op.tl
+++ b/share/txr/stdlib/op.tl
@@ -126,6 +126,7 @@
(let ((fargs-l1 (mapcar (lambda (farg)
^(sys:l1-val ,farg))
fargs)))
+ ;; no cadr here to avoid circular autoload
^[sys:apply ,(car (cdr syntax-2))
(append ,rest-sym (list ,*fargs-l1))]))
(metas syntax-2)