This is the mail archive of the
mailing list for the Guile project.
Re: interate over the a public interface?
- To: email@example.com
- Subject: Re: interate over the a public interface?
- From: Jim Blandy <firstname.lastname@example.org>
- Date: 09 May 1999 12:58:41 -0500
- CC: email@example.com
- References: <m10fzEv-000V2QC@boxer.physics.sunysb.edu>
> I've got an interactive environment that I'd like to include lots of
> small modules into. In otherwords, I'd like to have a module boot
> (define-module (boot)
> :use-module (mod1)
> :use-module (mod2)
> :use-module (mod3))
> that I can include by saying
> (use-module (boot))
> and get the exports of mod1, mod2, &c.
> I've had some success with module-for-each, but it interates over all
> variables in a module (local and exported). Is there a way to only
> iterate over the public interface?
This is a problem. It's one of the reasons my environment proposal
instantiates export, eval, local, and import environments as distinct
objects. Then you can use environment-fold (or whatever) and simply
apply it to the appropriate environment object to get the bindings you