Subject: Re: Register/ include macros in the Lisp Box permanently
From: (Rob Warnock)
Date: Sat, 11 Nov 2006 06:35:38 -0600
Newsgroups: comp.lang.lisp
Message-ID: <>
Thomas A. Russ <> wrote:
| Actually, what you should really do is just compile the files and have
| the load call not specify the file type.  That will take advantage of
| the general policy of lisp implementations to first try loading a
| compiled version of the file, and if they can't find one, trying to
| load the source.
|   (compile-file "my-file")
| And then in your initialization file include
|   (load "my-file")

CMUCL has a neat extension that adds a bit of further convenience
to this:

    (load "my-file" :if-source-newer :compile)

This will not compile the source if no corresponding FASL already
exists, but if it does *and* the source is newer than the FASL,
it will re-COMPILE-FILE the source and load the resulting FASL.
Quite handy if you want to make a quick edit and re-LOAD.

It's not a substitute for ASDF or DEFSYSTEM, but quite handy
during exploratory programming.


Rob Warnock			<>
627 26th Avenue			<URL:>
San Mateo, CA 94403		(650)572-2607