This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
RE: macro, duplicate definition warning
- From: "Dominique Boucher" <dominique dot boucher at nuecho dot com>
- To: "'Robert Nikander'" <rob at encodia dot biz>, <kawa at sources dot redhat dot com>
- Date: Mon, 28 Mar 2005 20:15:30 -0500
- Subject: RE: macro, duplicate definition warning
- Reply-to: <dominique dot boucher at nuecho dot com>
Rob,
> I'm having a problem defining a syntax-rules macro. I tried
> to boil it down to essentials in the the 3 files below.
> Basically a macro expands to an expression containing a call
> to a utility function, and requiring and using that macro
> from a file that also requires those same utility
> functions... leads to a "duplicate definition for
> 'get-request-param'"
> warning. (get-request-param is the utility function). This is
> actually an error for us, because we are using --warn-as-error.
Have you tried not 'requiring' <request> in <use>?
Also, why don't you put the 'define-web-func' macro in <request>? This way,
you will only need to require a single module in <use>.
Hope this helps!
Dominique
The SchemeWay Project
http://schemeway.sourceforge.net