[parenscript-devel] Implicit return for function bodies
Vladimir Sedach
vsedach at gmail.com
Sat Nov 28 00:24:41 UTC 2009
Just pushed patches that fix RETURNing of cond and symbol-macrolet.
Let me know if you catch anything else amiss.
Thank you,
Vladimir
2009/11/23 <sblist at me.com>:
> On 2009-11-05, at 12:20 PM, sblist at me.com wrote:
>
>> Hi Vladimir,
>>
>> Another tricky area for implicit return is in IF/WHEN/UNLESS. What
>> happens currently is that when a conditional is in an expression
>> place (such as after a RETURN statement), it is converted into
>> a ternary expression.
>
> This is still the case as of the latest commit, so
> code like this fails:
>
> (ps (lambda ()
> (cond ((foo? x) (loop for y in x do (foo y)))
> ((bar? x) x)
> (t t))))
>
> ..and this as well:
>
> (ps (lambda ()
> (cond ((foo? x)
> (try x (:catch (e) e)))
> ((bar? x) x)
> (t t))))
>
> - Scott
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
More information about the parenscript-devel
mailing list