[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] COND, CASE, AND, ... macros are buggy



On Sun, Apr 24, 2011 at 9:23 AM, Andre van Tonder <andre@x> 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@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports