[plt-scheme] Macros in the same module

From: Paulo J. Matos (pocmatos at gmail.com)
Date: Thu May 7 08:00:59 EDT 2009

Hi all,

I have defined a macro which expands into a define and then uses
another macro defined in the same module to expand into the define
However, the first macro cannot 'see' the second:
 expand: unbound identifier in module (in the transformer environment,
which does not include the macro definition that is visible to
run-time expressions) in: expand-rules

where expand-rules is the name for the second macro that expands into
the define body.
I wonder what I am missing here. Anything I need to make to tell them
about each other?


Paulo Jorge Matos - pocmatos at gmail.com
Webpage: http://www.personal.soton.ac.uk/pocm

Posted on the users mailing list.