I asked the same question on comp.lang.scheme, as
Chicken showed the same symtomps. Turns out that
syntax-case from release 6.9c onwards supports a
(meta) prefix for just this purpose, i.e.
"tells the expander that any variable definition
resulting from the definition is to be an expand-time
definition available only on the right-hand sides of
other meta definitions and, most importantly, to
transformer expressions."
Why not upgrade to the latest psyntax.ss from
http://www.cs.indiana.edu/chezscheme/syntax-case/ ? :)
I will try to build a custom SISC version and see how
it works.
-- Dan
--- "Scott G. Miller" <scgmille@...>
wrote:
> On Fri, Aug 11, 2006 at 12:40:20PM -0700, Dan wrote:
> > It seems that a syntax-case macro cannot use a
> > function defined in the same module:
>
> You need to let the module system know that the
> macro needs the
> function, eg:
>
> (module mod ((mac1 f))
> ... )
>
> Scott
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|