This is the mail archive of the guile@sourceware.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: autoaloading facility


Klaus Schilling <Klaus.Schilling@home.ivm.de> writes:

> Emacs lisp has an autoloading facility which enables to load the full
> definition of a function at the time it is needed first time. Could
> something like that also be provided in guile? or do lexical scoping
> and monolithic namespace prevent that?

There actually exists such a facility in 1.3.2.  You do:

(define-module (my-module)
  :autoload (some auto loaded module) (foo bar baz))

Any time when foo, bar or baz are referenced, (some auto loaded module)
will be loaded.

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