This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.7 bug: renamed identifiers in defines in macros


There's a bug in the 1.7 handling of macros like this one:

(define-syntax one
  (syntax-rules ()
    ((one var)
     (begin
       (define extra 1)
       (define var extra)))))

(one x) should bind x to 1, but instead it gets an error complaining of
invalid define syntax.  This is due to the (define extra 1) part, as the
following macro works:

(define-syntax two
  (syntax-rules ()
    ((one var)
     (begin
       (define var 2)))))


-- 
<brlewis@[(if (brl-related? message)    ; Bruce R. Lewis
              "users.sourceforge.net"   ; http://brl.codesimply.net/
              "alum.mit.edu")]>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]