This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: autoaloading facility
- To: Klaus.Schilling AT home.ivm.de
- Subject: Re: autoaloading facility
- From: Mikael Djurfeldt <mdj AT mdj-pc.nada.kth.se>
- Date: 14 Sep 1999 11:27:36 +0200
- Cc: guile AT sourceware.cygnus dot com
- Cc: djurfeldt AT nada.kth.se
- References: <m11QgjF-000H3iC@debian>
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.