unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* module trickery
@ 2002-08-28 23:28 Thomas Bushnell, BSG
  2002-08-29 20:40 ` Marius Vollmer
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Bushnell, BSG @ 2002-08-28 23:28 UTC (permalink / raw)



I need to evaluate expressions in a defined module.  I do this with:

(eval-in-module EXPR special-module)

special-module is very carefully constructed.  It gets variable
definitions from certain other places, all of which work just fine.  I
also need it to inherit syntax definitions from a specified module.  I
use the following to grab the relevant syntax:

(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.

I am not wedded to this particular arrangement: anything that imports
the macros from one module to another works, provided I get to use
define-syntax.

What might I be doing wrong?



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-09-05 19:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-28 23:28 module trickery Thomas Bushnell, BSG
2002-08-29 20:40 ` Marius Vollmer
2002-08-30 23:02   ` Thomas Bushnell, BSG
2002-08-31  2:58     ` Rob Browning
2002-08-31 15:01     ` Marius Vollmer
2002-09-03 21:52       ` Thomas Bushnell, BSG
2002-09-03 22:11       ` Thomas Bushnell, BSG
2002-09-04 19:35         ` Marius Vollmer
2002-09-04 20:12           ` Tom Lord
2002-09-05 16:52             ` Marius Vollmer
2002-09-04 20:14           ` Marius Vollmer
2002-09-04 22:21           ` Thomas Bushnell, BSG
2002-09-04 22:40             ` Marius Vollmer
2002-09-04 23:33               ` Thomas Bushnell, BSG
     [not found]               ` <87r8g9uy8d.fsf@becket.becket.net>
2002-09-05 19:37                 ` Marius Vollmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).