unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Two questions about the guile module system
@ 2003-03-31  9:23 Joris van der Hoeven
  2003-03-31 14:33 ` Marius Vollmer
  0 siblings, 1 reply; 13+ messages in thread
From: Joris van der Hoeven @ 2003-03-31  9:23 UTC (permalink / raw)
  Cc: contact


Hi,

How can I do the following:

1) Define a module which combines all exports of a set of
   other modules. Is there an analogue of the export keyword
   which exports all exports of an imported module?

2) Consider the following code

   main.scm:

	...
	(use-modules (library))
	...
	(use-modules (module))
	...

   library.scm

	(define-module (library))
	(export foo ...)
	...

   module.scm

	(define-module (module))
	...
	(foo)
	...

   The problem with this code is that, after loading main.scm,
   the 'foo' symbol will not be visible in module.scm even though
   this symbol is available in the context where module.scm
   was imported. Nevertheless, if I define foo in main.scm,
   then there is no problem...

   Is there a way to import library.scm or module.scm,
   such that foo remains visible in module.scm?

Thanks, Joris


-----------------------------------------------------------
Joris van der Hoeven <vdhoeven@texmacs.org>
http://www.texmacs.org: GNU TeXmacs scientific text editor
http://www.math.u-psud.fr/~vdhoeven: personal homepage
-----------------------------------------------------------



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


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

end of thread, other threads:[~2003-04-08 12:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31  9:23 Two questions about the guile module system Joris van der Hoeven
2003-03-31 14:33 ` Marius Vollmer
2003-03-31 15:00   ` Joris van der Hoeven
2003-03-31 15:08     ` Marius Vollmer
2003-04-04 16:06       ` Joris van der Hoeven
2003-04-05 10:25       ` Joris van der Hoeven
2003-04-05 11:30         ` Marius Vollmer
2003-04-05 13:39           ` Joris van der Hoeven
2003-04-05 17:00             ` Marius Vollmer
2003-04-07 17:11               ` Paul Jarc
2003-04-08 12:39                 ` Marius Vollmer
2003-04-05 16:39           ` Joris van der Hoeven
2003-04-05 17:17             ` 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).