On 10/30/2013 01:27 PM, Christophe Rhodes wrote:
Jeffrey Cunningham jeffrey@jkcunningham.com writes:
On 10/30/2013 12:21 PM, Jeff Cunningham wrote:
(describe 'cl-ppcre:regex-apropos)
This is really strange. As an experiment I just created a dirt-simple source file named "test1.lisp" in an isolated directory.
(require :cl-ppcre)
I suspect that this might be the source of your problems. If you have this kind of thing in your lisp code files, I can sort-of understand why you might be getting different answers, because this isn't an idiomatic way of doing things. Normally, you would require modules your system depends on from the defsystem, not from within the source files. (In fact, your example as you state it should not work at all, at least in a clean image, because the file test1.lisp as you describe it should not be compilable, as it contains read-time references to a package which is only available at load-time.
According to the ASDF documentation: http://common-lisp.net/project/asdf/asdf.html#Using-ASDF
4 Using ASDF
4.1 Loading a system
The system foo is loaded (and compiled, if necessary) by evaluating the following Lisp form:
(asdf:load-system :foo)
On some implementations (namely recent versions of ABCL, Allegro CL, Clozure CL, CMUCL, ECL, GNU CLISP, LispWorks, MKCL, *SBCL* and XCL), ASDF hooks into the |CL:REQUIRE| facility and you can just use:
(require :foo)
Is this not correct?
Regards, --Jeff