[Top][All Lists]

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

[bug #65212] syntax-rules error

From: anonymous
Subject: [bug #65212] syntax-rules error
Date: Thu, 25 Jan 2024 23:28:13 -0500 (EST)


                 Summary: syntax-rules error
                   Group: MIT/GNU Scheme
               Submitter: None
               Submitted: Fri 26 Jan 2024 04:28:13 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect behavior
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Andrew Pochinsky
        Originator Email: avp@mit.edu
             Open/Closed: Open
         Discussion Lock: Any


Follow-up Comments:

Date: Fri 26 Jan 2024 04:28:13 AM UTC By: Anonymous
The following code

(define foo 'outer-foo)
(define-syntax bar
  (syntax-rules ()
    ((_ name val) (begin
                    (define foo (list 'inner val))
                    (define name (lambda () foo))))))

(bar baz 2)
(display (list foo (baz)))

results in error instead of printing

(outer-foo (inner 2))

as required by R7RS.


Reply to this item at:


Message sent via Savannah

reply via email to

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