This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: interate over the a public interface?
- To: guile@cygnus.com
- Subject: Re: interate over the a public interface?
- From: Ole Myren R|hne <o.m.rohne@fys.uio.no>
- Date: 10 May 1999 08:49:14 +0200
- References: <m10fzEv-000V2QC@boxer.physics.sunysb.edu>
>>>>> "Clark" == Clark McGrew <mcgrew@ale.physics.sunysb.edu> writes:
Clark> Hello Everybody, I've got an interactive environment that
Clark> I'd like to include lots of small modules into. In
Clark> otherwords, I'd like to have a module boot
Clark> (define-module (boot)
Clark> :use-module (mod1)
Clark> :use-module (mod2)
Clark> :use-module (mod3))
Clark> that I can include by saying
Clark> (use-module (boot))
Clark> and get the exports of mod1, mod2, &c.
I've seen that augmenting the guile-user module does the trick, ie in
boot.scm:
(define-module (guile-user)
:use-module (mod1)
:use-module (mod2)
:use-module (mod3))
(define-module (boot)
:use-module (more modules)
:use-module (might need to)
:use-module (repeat modules)
:use-module (listed above)
:use-module (as needed by)
:use-module (boot top level code))
(export symbols from boot level code)
Regards,
Ole