When a CASE expression is in the return position of a function and it contains an empty clause that is not the last clause, a syntax error is produced:
(lambda () (case x (:foo) (:bar))) => function () { switch (x) { case 'foo': return break; case 'bar': return null; }; }; => SyntaxError: Unexpected token break
Scott
Just pushed a patch. Thank you for the bug report!
Vladimir
On Thu, Dec 8, 2011 at 1:42 PM, Scott Bell scott@skysheet.com wrote:
When a CASE expression is in the return position of a function and it contains an empty clause that is not the last clause, a syntax error is produced:
(lambda () (case x (:foo) (:bar))) => function () { switch (x) { case 'foo': return break; case 'bar': return null; }; }; => SyntaxError: Unexpected token break
Scott
parenscript-devel mailing list parenscript-devel@common-lisp.net http://lists.common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
parenscript-devel@common-lisp.net