[parenscript-devel] [PATCH] Make NIL the value (the last form in enclosing PROGN) of a LOOP macro with no default accumulator.
sblist at me.com
sblist at me.com
Thu Nov 5 19:05:02 UTC 2009
Hi Vladimir,
You'll probably want to handle FOR, WHILE separately in
the RETURN special form, but I think this works for our
purposes with the existing support for PROGN.
Generally, I think that the implicit return mechanism should
try its utmost to avoid generating JS syntax errors.
- Scott
---
src/lib/ps-loop.lisp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/lib/ps-loop.lisp b/src/lib/ps-loop.lisp
index 7272247..8a383a4 100644
--- a/src/lib/ps-loop.lisp
+++ b/src/lib/ps-loop.lisp
@@ -325,4 +325,4 @@
,@(initially loop)
,main
,@(finally loop))
- ,@(when (default-accum-var loop) `((return ,(default-accum-
var loop)))))))
+ ,(aif (default-accum-var loop) it nil))))
--
1.6.5.2
More information about the parenscript-devel
mailing list