<br><font size=2 face="sans-serif">I'm partial to the book "Successful
Lisp" but neither book covers ASDF. This tutorial was of great help
in the past:</font>
<br><font size=2 face="sans-serif">http://common-lisp.net/~mmommer/asdf-howto.shtml</font>
<br>
<br><font size=2 face="sans-serif">but it is not quite helping me enough
here. In both Case 1 and Case 2 below, my .sbclrc does not change, yet
Case 2 works just fine. I would like to be able to do an asdf load on bank-match
and have it pull-in cl-ppcre, but as it stands I must manually load it
first.</font>
<br>
<br><font size=2 face="sans-serif">(setf asdf:*central-registry*</font>
<br><font size=2 face="sans-serif">      '(</font>
<br><font size=2 face="sans-serif">        ;;</font>
<br><font size=2 face="sans-serif">        *default-pathname-defaults*
</font>
<br><font size=2 face="sans-serif">        ;;;
</font>
<br><font size=2 face="sans-serif">        #P"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\series-2.2.9\\"</font>
<br><font size=2 face="sans-serif">        #P"C:\\cygwin\\home\\W049945\\prg\\lisp-asdf\\cl-ppcre-1.3.2\\"</font>
<br><font size=2 face="sans-serif">        #P"C:\\cygwin\\home\\W049945\\prg\\redick\\lisp\\"</font>
<br><font size=2 face="sans-serif">        #P"C:\\etl\\y.com\\trunk\\zan\\approximate-matching\\src\\lisp\\"</font>
<br><font size=2 face="sans-serif">        ))</font>
<br>
<br><font size=2 face="sans-serif">Case 1: attempt to load cl-ppcre via
my defpackage: throw error 'The name "CL-PPCRE" does not designate
any package.'</font>
<br>
<br><font size=2 face="sans-serif">relevant source:</font>
<br>
<br><font size=2 face="sans-serif">(defpackage :bank-match</font>
<br><font size=2 face="sans-serif">  (:use :cl :asdf :cl-ppcre)</font>
<br><font size=2 face="sans-serif">  )</font>
<br>
<br><font size=2 face="sans-serif">(in-package :bank-match)</font>
<br>
<br><font size=2 face="sans-serif">(asdf:defsystem bank-match</font>
<br><font size=2 face="sans-serif">    :description "Approximate
bank matching"</font>
<br><font size=2 face="sans-serif">    :author "Terrence
M. Brannon"</font>
<br><font size=2 face="sans-serif">    :maintainer "Terrence
M. Brannon"</font>
<br><font size=2 face="sans-serif">    :licence "Artistic"</font>
<br><font size=2 face="sans-serif">    :version "1.0"</font>
<br><font size=2 face="sans-serif">    :serial t</font>
<br><font size=2 face="sans-serif">    :components (</font>
<br><font size=2 face="sans-serif">         
       (:file "clean")</font>
<br><font size=2 face="sans-serif">         
       )</font>
<br><font size=2 face="sans-serif">    )</font>
<br>
<br><font size=2 face="sans-serif">(progn</font>
<br><font size=2 face="sans-serif">  (declaim (optimize (debug 3)
(safety 3))) </font>
<br><font size=2 face="sans-serif">  (asdf:operate 'asdf:load-op 'bank-match))</font>
<br>
<br><font size=2 face="sans-serif">Case 2: load cl-ppcre manually and then
attempt to load my bank-match package using a simple asdf call => works
just fine</font>
<br><font size=2 face="sans-serif">symbols:   BANK-MATCH::OPTIMIZE,
COMMON-LISP:OPTIMIZE</font>
<br>
<br><font size=2 face="sans-serif">;;;; (asdf:operate 'asdf:load-op 'cl-ppcre)
...</font>
<br><font size=2 face="sans-serif">; loading system definition from</font>
<br><font size=2 face="sans-serif">; C:\cygwin\home\W049945\prg\lisp-asdf\cl-ppcre-1.3.2\cl-ppcre.asd
into</font>
<br><font size=2 face="sans-serif">; #<PACKAGE "ASDF0"></font>
<br><font size=2 face="sans-serif">; registering #<SYSTEM :CL-PPCRE
{B1BA4C1}> as CL-PPCRE</font>
<br>
<br><font size=2 face="sans-serif">;;;; (asdf:operate 'asdf:load-op 'bank-match)
...</font>
<br><font size=2 face="sans-serif">; loading system definition from</font>
<br><font size=2 face="sans-serif">; c:\etl\aml-ntdb-uat-02.ny.jpmorgan.com\trunk\zan\approximate-matching\src\lisp\bank-match.asd</font>
<br><font size=2 face="sans-serif">; into #<PACKAGE "ASDF0"></font>
<br><font size=2 face="sans-serif">; registering #<SYSTEM BANK-MATCH
{ABCC439}> as BANK-MATCH</font>
<br><font size=2 face="sans-serif">;;;; (asdf:operate 'asdf:load-op 'cl-ppcre)
...</font>
<br><font size=2 face="sans-serif">;;;; (asdf:operate 'asdf:load-op 'bank-match)
...</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">--<br>
Terrence Brannon - SID W049945<br>
614-213-2475 (office)<br>
614-213-3426 (fax)<br>
818-359-0893 (cell)<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Edi Weitz <edi@agharta.de></b>
</font>
<br><font size=1 face="sans-serif">Sent by: cl-ppcre-devel-bounces@common-lisp.net</font>
<p><font size=1 face="sans-serif">01/04/2008 05:43 PM</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
General interest list about cl-ppcre <cl-ppcre-devel@common-lisp.net></font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td><font size=1 face="sans-serif">General interest list about cl-ppcre
<cl-ppcre-devel@common-lisp.net></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td><font size=1 face="sans-serif">Re: [cl-ppcre-devel] using cl-ppcre
functions without package prefixes</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Fri, 4 Jan 2008 17:20:41 -0500, terrence.x.brannon@jpmchase.com
wrote:<br>
<br>
> Hello, I know this is more of just a pure Lisp question, but i<br>
> cannot figure out how to get my Lisp program to use cl-ppcre without<br>
> having to prefix the function calls with 'cl-ppcre'<br>
<br>
Your technical question was answered already, but I suspect (I may be<br>
wrong, of course) that you make the same mistake many Lisp newbies<br>
make - you're confusing packages and systems.  A "package"
is a<br>
first-class Lisp object defined in the ANSI standard.  You can read<br>
about it here for example:<br>
<br>
  http://gigamonkeys.com/book/programming-in-the-large-packages-and-symbols.html<br>
<br>
(Read the whole book if you haven't done so already.)<br>
<br>
A "system" (that's a common usage of the name although there's
no<br>
fixed definition for it) is something that's defined by a defsystem<br>
facility like ASDF - it's more or less a collection of source files<br>
plus instructions on how they are to be compiled.<br>
<br>
Very often there's a system and a package of the same name, like it's<br>
the case for CL-PPCRE.  That doesn't have to be the case, though.
 The<br>
names could be different, one system could define more than one<br>
package or no package at all, you can define a package without<br>
defining a system, etc.<br>
<br>
HTH,<br>
Edi.<br>
_______________________________________________<br>
cl-ppcre-devel site list<br>
cl-ppcre-devel@common-lisp.net<br>
http://common-lisp.net/mailman/listinfo/cl-ppcre-devel<br>
</tt></font>
<br>
<P><hr size=1></P>
<P>
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.

This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.

Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.
</P>