bugMIT/GNU Scheme - Bugs: bug #30791, DECLARE doesn't work in...

 
 
Show feedback again

bug #30791: DECLARE doesn't work in SYNTAX-RULES templates

Submitted by:  Taylor R. Campbell <riastradh>
Submitted on:  Mon 16 Aug 2010 11:02:08 PM UTC  
 
Category: runtimeSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect behavior
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: Open
Keywords: 

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 16 Aug 2010 11:02:08 PM UTC, original submission:

(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.

Taylor R. Campbell <riastradh>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by riastradh (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup