Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 723830890bac44da3d113209b14e090b > files > 236

sbcl-1.0.31-1mdv2010.0.i586.rpm

<html lang="en">
<head>
<title>Components - asdf Manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="asdf Manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="The-object-model-of-asdf.html#The-object-model-of-asdf" title="The object model of asdf">
<link rel="prev" href="Operations.html#Operations" title="Operations">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<!--
This manual describes asdf, a system definition facility for Common
Lisp programs and libraries.

asdf Copyright (C) 2001-2004 Daniel Barlow and contributors

This manual Copyright (C) 2001-2004 Daniel Barlow and
contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
``Software''), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.-->
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Components"></a>
<p>
Previous:&nbsp;<a rel="previous" accesskey="p" href="Operations.html#Operations">Operations</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="The-object-model-of-asdf.html#The-object-model-of-asdf">The object model of asdf</a>
<hr>
</div>

<!-- node-name,  next,  previous,  up -->
<h3 class="section">3.2 Components</h3>

<p><a name="index-component-11"></a><a name="index-system-12"></a><a name="index-system-designator-13"></a><a name="index-g_t_002asystem_002ddefinition_002dsearch_002dfunctions_002a-14"></a>
A <dfn>component</dfn> represents a source file or (recursively) a
collection of components.  A <dfn>system</dfn> is (roughly speaking) a
top-level component that can be found via <code>find-system</code>.

   <p>A <dfn>system designator</dfn> is a string or symbol and behaves just like
any other component name (including with regard to the case conversion
rules for component names).

<div class="defun">
&mdash; Function: <b>find-system</b><var> system-designator &amp;optional </var>(<var>error-p t</var>)<var><a name="index-find_002dsystem-15"></a></var><br>
<blockquote>
        <p>Given a system designator, <code>find-system</code> finds and returns a
system.  If no system is found, an error of type
<code>missing-component</code> is thrown, or <code>nil</code> is returned if
<code>error-p</code> is false.

        <p>To find and update systems, <code>find-system</code> funcalls each element
in the <code>*system-definition-search-functions*</code> list, expecting a
pathname to be returned.  The resulting pathname is loaded if either
of the following conditions is true:

          <ul>
<li>there is no system of that name in memory
<li>the file's last-modified time exceeds the last-modified time of the
  system in memory
</ul>

        <p>When system definitions are loaded from <samp><span class="file">.asd</span></samp> files, a new
scratch package is created for them to load into, so that different
systems do not overwrite each others operations.  The user may also
wish to (and is recommended to) include <code>defpackage</code> and
<code>in-package</code> forms in his system definition files, however, so
that they can be loaded manually if need be.

        <p>The default value of <code>*system-definition-search-functions*</code> is a
function that looks in each of the directories given by evaluating
members of <code>*central-registry*</code> for a file whose name is the
name of the system and whose type is <samp><span class="file">asd</span></samp>.  The first such file
is returned, whether or not it turns out to actually define the
appropriate system.  Hence, it is strongly advised to define a system
<var>foo</var> in the corresponding file <var>foo.asd</var>. 
</p></blockquote></div>

<ul class="menu">
<li><a accesskey="1" href="Common-attributes-of-components.html#Common-attributes-of-components">Common attributes of components</a>
<li><a accesskey="2" href="Pre_002ddefined-subclasses-of-component.html#Pre_002ddefined-subclasses-of-component">Pre-defined subclasses of component</a>
<li><a accesskey="3" href="Creating-new-component-types.html#Creating-new-component-types">Creating new component types</a>
</ul>

   </body></html>