bugMIT/GNU Scheme - Bugs: bug #65272, Attempting to define macro with...

 
 

bug #65272: Attempting to define macro with keyword "if" using define-syntax results in error.

Submitter:  None
Submitted:  Thu 08 Feb 2024 12:24:00 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect behavior
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Richard
Originator Email:  -email is unavailable- Open/Closed:  Open
Keywords: 
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Thu 08 Feb 2024 12:24:00 AM UTC, original submission:  

Discussed here: https://stackover ... ame-if-be-defined

Incorrect behavior, running on MIT/GNU Scheme 12.1:

1 ]=> (define-syntax if
        (syntax-rules ()
          ((_) 'ok)))

;Premature reference to reserved name: if
;To continue, call RESTART with an option number:
; (RESTART 1) => Return to read-eval-print level 1.


Correct behavior:

1 ]=> (define-syntax if
        (syntax-rules ()
          ((_) 'ok)))

;Value: if

1 ]=> (if)

;Value: ok


Anonymous

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

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

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-a7ba.
Corresponding source code