bug-kawa
[Top][All Lists]
Advanced

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

[Bug-kawa] [bug #35526] Nested macro


From: Helmut Eller
Subject: [Bug-kawa] [bug #35526] Nested macro
Date: Tue, 14 Feb 2012 11:09:53 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.10.229 Version/11.61

Follow-up Comment #1, bug #35526 (project kawa):

Slightly simpler test case:

(define-syntax foo
  (syntax-rules ()
    ((foo-id bar-id stuff ...)
     (let ((f (lambda () (display "barn"))))
       (let-syntax ((bar-id (syntax-rules ()
                              ((_) (f)))))
          stuff ...)))))

(define (baz)
  (foo bar (bar) (bar)))


This version works as expected:

(define-syntax foo
  (syntax-rules ()
    ((foo-id bar-id stuff ...)
     (let ((f (lambda () (display "barn"))))
       (let-syntax ((bar-id (syntax-rules ()
                              ((_) (f)))))
          stuff ...)))))



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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