guile-user
[Top][All Lists]
Advanced

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

Two questions about the guile module system


From: Joris van der Hoeven
Subject: Two questions about the guile module system
Date: Mon, 31 Mar 2003 11:23:59 +0200 (MET DST)

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 <address@hidden>
http://www.texmacs.org: GNU TeXmacs scientific text editor
http://www.math.u-psud.fr/~vdhoeven: personal homepage
-----------------------------------------------------------





reply via email to

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