summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-01 19:43:58 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-01 19:43:58 -0700
commit4ebbd243bbc1433400eff02ea9c18dc7c4eb76ce (patch)
treef41ba840367800cc97190c229cfd27c0e891adfd
parent91625692921a0e19799f386890bfa316816c9cf8 (diff)
downloadtxr-4ebbd243bbc1433400eff02ea9c18dc7c4eb76ce.tar.gz
txr-4ebbd243bbc1433400eff02ea9c18dc7c4eb76ce.tar.bz2
txr-4ebbd243bbc1433400eff02ea9c18dc7c4eb76ce.zip
compiler: bugfix: return value optional
* share/txr/stdlib/compiler.tl (comp-return-from, comp-return): The value expression is optional in all the return operators.
-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 fc80d178..943ae461 100644
--- a/share/txr/stdlib/compiler.tl
+++ b/share/txr/stdlib/compiler.tl
@@ -483,7 +483,7 @@
bfrag.ffuns)))))
(defmeth compiler comp-return-from (me oreg env form)
- (mac-param-bind form (op name value) form
+ (mac-param-bind form (op name : value) form
(let* ((nreg (if (null name)
nil
me.(get-dreg name)))
@@ -496,7 +496,7 @@
vfrag.ffuns)))))
(defmeth compiler comp-return (me oreg env form)
- (mac-param-bind form (op value) form
+ (mac-param-bind form (op : value) form
me.(comp-return-from oreg env ^(,op nil ,value))))
(defmeth compiler comp-handler-bind (me oreg env form)