Thomas A. Russ <tar@sevak.isi.edu> 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
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607