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

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

[Bug-mit-scheme] [bug #30791] DECLARE doesn't work in SYNTAX-RULES templ


From: Taylor R. Campbell
Subject: [Bug-mit-scheme] [bug #30791] DECLARE doesn't work in SYNTAX-RULES templates
Date: Mon, 16 Aug 2010 23:02:09 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

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

                 Summary: DECLARE doesn't work in SYNTAX-RULES templates
                 Project: MIT/GNU Scheme
            Submitted by: riastradh
            Submitted on: Mon 16 Aug 2010 11:02:08 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:

(define-syntax ignore-variables
  (syntax-rules ()
    ((IGNORE-VARIABLES x ...)
     (DECLARE (IGNORE x ...)))))

(let ((x 5))
  (ignore-variables x)
  0)
;Ill-formed special form: (#[syntactic-closure 12] (#[syntactic-closure 13]
x))

;;; Should be

;Value: 0

;;; The problem is that in the output of IGNORE-VARIABLES, `IGNORE'
;;; occurs not as a symbol but as an alias, which confuses the part
;;; of the syntaxer that processes declarations.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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