[Top][All Lists]

[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)


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


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


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


        (define-module (module))

   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> GNU TeXmacs scientific text editor personal homepage

reply via email to

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