guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: module trickery


From: Marius Vollmer
Subject: Re: module trickery
Date: 29 Aug 2002 22:40:42 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

address@hidden (Thomas Bushnell, BSG) writes:

> (module-use! special-module (resolve-module '(python syntax)))
> 
> The (python syntax) module creates syntax with define-syntax, and does
> nothing out of the ordinary.
> 
> When I evaluate expressions in special-module which use the syntax
> defined in (python syntax), things go into an infinite loop.  The
> macro I'm testing is blindingly simple and works fine in a normal
> environment.

Please try what happens when you also do

  (use-modules (ice-9 syncase))
  (module-use! special-module (resolve-module '(ice-9 syncase)))
  (set-module-transformer! special-module syncase)

The 'module transformer' needs to be set up so that syntax-case
expansion can work.

> What might I be doing wrong?

Nothing, in fact.  The syntax-case and modules are not really done
yet, I'm afraid.

-- 
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3  331E FAF8 226A D5D4 E405




reply via email to

[Prev in Thread] Current Thread [Next in Thread]