On Wed, Feb 12, 2020 at 5:26 AM Joe Marshall <jmarsh...@alum.mit.edu> wrote:

> Macros don't seem to be hygienic in Release 10.1.10
> (define (quux) (display "quux") 'quux)
> (define (foo) (display "foo") #f)
>
> (define-syntax or2
>   (syntax-rules ()
>     ((or2 form1 form2)
>      (let ((temp form1))
>        (if temp
>            temp
>            form2)))))
>
> (let ((temp (quux))) (or2 (foo) temp))
> quuxfoo
> #f  ; Wrong! Should be 'quux
>

I just checked, and this returns quux as of HEAD (9f175968f).  (CPH has
made several macro fixes recently.)
  • Macro bug Joe Marshall
    • Re: Macro bug Arthur A. Gleckler

Reply via email to