[Top][All Lists]

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

Re: Macro bug

From: Arthur A. Gleckler
Subject: Re: Macro bug
Date: Wed, 12 Feb 2020 11:06:33 -0800

On Wed, Feb 12, 2020 at 5:26 AM Joe Marshall <address@hidden> 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

(let ((temp (quux))) (or2 (foo) temp))
#f  ; Wrong! Should be 'quux

I just checked, and this returns quux as of HEAD (9f175968f).  (CPH has made several macro fixes recently.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]