bug-mit-scheme
[Top][All Lists]
Advanced

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

[Bug-mit-scheme] [bug #27426] Hygiene is broken in `syntax-rules'.


From: Arthur A. Gleckler
Subject: [Bug-mit-scheme] [bug #27426] Hygiene is broken in `syntax-rules'.
Date: Fri, 11 Sep 2009 17:46:47 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/4.0.207.0 Safari/532.0

URL:
  <http://savannah.gnu.org/bugs/?27426>

                 Summary: Hygiene is broken in `syntax-rules'.
                 Project: MIT/GNU Scheme
            Submitted by: aag
            Submitted on: Fri 11 Sep 2009 05:46:46 PM GMT
                Category: runtime
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                Keywords: 

    _______________________________________________________

Details:

>From Brian Mastenbrook's message on <r6rs-discuss>
(<http://lists.r6rs.org/pipermail/r6rs-discuss/2009-September/005152.html>):

  MIT Scheme's implementation of hygiene is broken:

  1 ]=> (define-syntax a
   (syntax-rules ()
     ((_)
      (begin
        (define-syntax b
          (syntax-rules ()
            ((_) 1)))
        (define-syntax c
          (syntax-rules ()
            ((_) 2)))))))

  ;Value: a

  1 ]=> (a)

  ;Unspecified return value

  1 ]=> (b)

  ;Value: 1




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?27426>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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