Re: [Scheme-reports] COND, CASE, AND, ... macros are buggy
Alex Shinn 24 Apr 2011 02:28 UTC
On Sun, Apr 24, 2011 at 9:23 AM, Andre van Tonder <andre@het.brown.edu> wrote:
> With the definitions on p 55.
>
> (let ((x 1))
> (cond (else (define x 2)))
> x)
> => 2
>
> similarly for CASE.
Actually, not for CASE, the rule for computing the
key comes before the rule for expanding the ELSE.
In conjunction with your previous mail, these would
seem to be unspecified in R5RS, but it seems worth
explicitly introducing a lexical scope.
--
Alex
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports