This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
1.7 bug: renamed identifiers in defines in macros
- From: Bruce Lewis <brlewis at ALUM dot MIT dot EDU>
- To: Per Bothner <per at bothner dot com>
- Cc: kawa at sources dot redhat dot com
- Date: 22 May 2003 15:51:14 -0400
- Subject: 1.7 bug: renamed identifiers in defines in macros
- References: <3EC81857.4030609@bothner.com>
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")]>