This is the mail archive of the guile@cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: interate over the a public interface?


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]