225 lines
13 KiB
HTML
225 lines
13 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Created by GNU Texinfo 7.0.3, https://www.gnu.org/software/texinfo/ -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Packages (ECL Manual)</title>
|
|
|
|
<meta name="description" content="Packages (ECL Manual)">
|
|
<meta name="keywords" content="Packages (ECL Manual)">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content="makeinfo">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link href="index.html" rel="start" title="Top">
|
|
<link href="Indexes.html" rel="index" title="Indexes">
|
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
|
<link href="Standards.html" rel="up" title="Standards">
|
|
<link href="Numbers.html#Numbers" rel="next" title="Numbers">
|
|
<link href="Symbols.html" rel="prev" title="Symbols">
|
|
<style type="text/css">
|
|
<!--
|
|
/* colors */
|
|
|
|
span.r {font-family: initial; font-weight: normal; font-style: normal}
|
|
@media (prefers-color-scheme: dark) {
|
|
/* dark theme */
|
|
html { color: seashell;
|
|
background: #1A1A1A; }
|
|
body { background: #1A1A1A; }
|
|
th { border-bottom: 2px solid lightgray; }
|
|
h1, h2, h3, h4, h5 { background-image: linear-gradient(to left, #202020, #3A3A3A); }
|
|
code, var, code a { color: darkorange;
|
|
background: #2A2A2A; }
|
|
a { color: seashell; }
|
|
pre { background: #2A2A2A;
|
|
color: seashell;
|
|
/* mark longer code block with stripe on the left */
|
|
border-left: 5px solid darkorange;
|
|
padding-left: 10px; }
|
|
pre.screen { background: #2A2A2A;
|
|
border: 1px solid lightgray; }
|
|
pre.programlisting { background: #2A2A2A;
|
|
border-left: 1px solid lightgray;
|
|
border-top: 1px solid lightgray; }
|
|
/* we need a light background in order for the images to be readable */
|
|
img { background: white }
|
|
}
|
|
@media (prefers-color-scheme: light) {
|
|
/* light theme */
|
|
html { background: white }
|
|
body { background: white }
|
|
th { border-bottom: 2px solid gray; }
|
|
h1, h2, h3, h4, h5 { background: lightgray; }
|
|
code, var, code a { color: darkred;
|
|
background: whitesmoke; }
|
|
a { color: #000; }
|
|
pre { background: whitesmoke;
|
|
color: black;
|
|
/* mark longer code block with stripe on the left */
|
|
border-left: 5px solid darkred;
|
|
padding-left: 10px; }
|
|
pre.screen { background: #EEE;
|
|
border: 1px solid black; }
|
|
pre.programlisting { background: #EEEEEE;
|
|
border-left: 1px solid black;
|
|
border-top: 1px solid black; }
|
|
}
|
|
|
|
body {
|
|
margin: 1em 125px 0 10%;
|
|
line-height: 1.5em;
|
|
padding: 0 2em 1em 2em;
|
|
font: 13px Verdana,Arial, sans-serif
|
|
}
|
|
ul, dd, dl, dt { margin-top: 0; margin-bottom: 0; }
|
|
p, code, td, dl, dt {
|
|
line-height: 1.5em;
|
|
}
|
|
table {
|
|
font: inherit;
|
|
border-collapse: collapse;
|
|
}
|
|
th, td {
|
|
vertical-align: top;
|
|
}
|
|
h1, h2, h3 { padding-left: 15px; }
|
|
h4, h5 { padding-left: 5px; }
|
|
code, pre {
|
|
font-size: 1em;
|
|
font-family: monospace;
|
|
}
|
|
var {
|
|
font-size: 1em;
|
|
}
|
|
/* links inside code appear the same as the code itself */
|
|
code a {
|
|
font-weight: normal;
|
|
text-decoration: none;
|
|
}
|
|
/* but get an underline when hovering */
|
|
code a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
/* ordinary links appear in bold */
|
|
a { font-weight: bold; }
|
|
pre.verbatim {
|
|
margin: 0 0 0 0;
|
|
}
|
|
pre {
|
|
overflow: auto;
|
|
}
|
|
pre.screen {
|
|
font-weight: bold;
|
|
padding: 0.5em;
|
|
}
|
|
pre.programlisting {
|
|
padding: 0.5em;
|
|
}
|
|
div p { padding: 0 2em }
|
|
li p { padding: 0; margin: 0 }
|
|
hr { display: none; }
|
|
div.funcsynopsis p {
|
|
text-indent: -2em;
|
|
}
|
|
div.variablelist {
|
|
padding: 0 2em;
|
|
}
|
|
.type, .funcsynopsis, .symbol {
|
|
font-family: monospace;
|
|
}
|
|
.type, .symbol, .replaceable {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
-->
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en">
|
|
<div class="section-level-extent" id="Packages">
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Numbers.html#Numbers" accesskey="n" rel="next">Numbers</a>, Previous: <a href="Symbols.html" accesskey="p" rel="prev">Symbols</a>, Up: <a href="Standards.html" accesskey="u" rel="up">Standards</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indexes.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
<h3 class="section" id="Packages-1">2.9 Packages</h3>
|
|
|
|
<p>In <a class="ref" href="Packages.html#tab_003aECL_002dpackages">Table 2.4</a> we list all packages available in ECL. The
|
|
nicknames are aliases for a package. Thus, <code class="code">system:symbol</code> may be
|
|
written as <code class="code">sys:symbol</code> or <code class="code">si:symbol</code>. The module field
|
|
explains which library provides what package. For instance, the ASDF
|
|
package is obtained when loading the ASDF library with <code class="code">(require 'asdf)</code>.
|
|
</p>
|
|
<div class="float" id="tab_003aECL_002dpackages">
|
|
|
|
<table class="multitable">
|
|
<thead><tr><th width="25%">Name</th><th width="25%">Nickname</th><th width="20%">In module</th><th width="30%">Description</th></tr></thead>
|
|
<tbody><tr><td width="25%"><code class="code">COMMON-LISP</code></td><td width="25%"><code class="code">CL</code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">Main Common Lisp package.</td></tr>
|
|
<tr><td width="25%"><code class="code">COMMON-LISP-USER</code></td><td width="25%"><code class="code">CL-USER</code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">User package.</td></tr>
|
|
<tr><td width="25%"><code class="code">CLOS</code></td><td width="25%"><code class="code">MOP</code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">Symbols from the AMOP.</td></tr>
|
|
<tr><td width="25%"><code class="code">EXT</code></td><td width="25%"><code class="code"> </code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">ECL extensions to the language & library.</td></tr>
|
|
<tr><td width="25%"><code class="code">SYSTEM</code></td><td width="25%"><code class="code">SI, SYS</code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">Functions and variables internal to the implementation. Never to be used.</td></tr>
|
|
<tr><td width="25%"><code class="code">FFI</code></td><td width="25%"><code class="code"></code></td><td width="20%"><code class="code">ECL core</code></td><td width="30%">Foreign function interface</td></tr>
|
|
<tr><td width="25%"><code class="code">CMP</code></td><td width="25%"><code class="code">C</code></td><td width="20%"><code class="code">CMP</code></td><td width="30%">The compiler</td></tr>
|
|
<tr><td width="25%"><code class="code">SB-BSD-SOCKETS</code></td><td width="25%"><code class="code"> </code></td><td width="20%"><code class="code">SOCKETS</code></td><td width="30%">Sockets library compatible with SBCL’s</td></tr>
|
|
<tr><td width="25%"><code class="code">SB-RT</code></td><td width="25%"><code class="code">RT, REGRESSION-TEST</code></td><td width="20%"><code class="code">RT</code></td><td width="30%">Test units (customized for ECL)</td></tr>
|
|
<tr><td width="25%"><code class="code">ASDF</code></td><td width="25%"><code class="code"> </code></td><td width="20%"><code class="code">ASDF</code></td><td width="30%">System definition file with ECL customizations.</td></tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="caption"><p><strong class="strong">Table 2.4: </strong>ECL packages</p></div></div>
|
|
<ul class="mini-toc">
|
|
<li><a href="Packages.html#C-Reference-9" accesskey="1">C Reference</a></li>
|
|
</ul>
|
|
<div class="subsection-level-extent" id="C-Reference-9">
|
|
<h4 class="subsection">2.9.1 C Reference</h4>
|
|
|
|
<ul class="mini-toc">
|
|
<li><a href="Packages.html#ANSI-Dictionary-6" accesskey="1">ANSI Dictionary</a></li>
|
|
</ul>
|
|
<div class="subsubsection-level-extent" id="ANSI-Dictionary-6">
|
|
<h4 class="subsubsection">2.9.1.1 ANSI Dictionary</h4>
|
|
<p>Common Lisp and C equivalence
|
|
</p>
|
|
<table class="multitable">
|
|
<thead><tr><th width="30%">Lisp symbol</th><th width="70%">C function</th></tr></thead>
|
|
<tbody><tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_export.htm">export</a></td><td width="70%">cl_object cl_export(cl_narg narg, cl_object symbols, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_find_s.htm">find-symbol</a></td><td width="70%">cl_object cl_find_symbol(cl_narg narg, cl_object string, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_find_p.htm">find-package</a></td><td width="70%">cl_object cl_find_package(cl_object name)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_find_a.htm">find-all-symbols</a></td><td width="70%">cl_object cl_find_all_symbols(cl_object string)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_import.htm">import</a></td><td width="70%">cl_object cl_import(cl_narg narg, cl_object symbols, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_list_a.htm">list-all-packages</a></td><td width="70%">cl_object cl_list_all_packages(void)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_rn_pkg.htm">rename-package</a></td><td width="70%">cl_object cl_rename_package(cl_narg narg, cl_object package, cl_object new_name, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_shadow.htm">shadow</a></td><td width="70%">cl_object cl_shadow(cl_narg narg, cl_object symbols, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_shdw_i.htm">shadowing-import</a></td><td width="70%">cl_object cl_shadowing_import(cl_narg narg, cl_object symbols, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_del_pk.htm">delete-package</a></td><td width="70%">cl_object cl_delete_package(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_pkg.htm">make-package</a></td><td width="70%">cl_object cl_make_package(cl_narg narg, cl_object package_name, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_unexpo.htm">unexport</a></td><td width="70%">cl_object cl_unexport(cl_narg narg, cl_object symbols, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_uninte.htm">unintern</a></td><td width="70%">cl_object cl_unintern(cl_narg narg, cl_object symbol, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_unuse_.htm">unuse-package</a></td><td width="70%">cl_object cl_unuse_package(cl_narg narg, cl_object package, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_use_pk.htm">use-package</a></td><td width="70%">cl_object cl_use_package(cl_narg narg, cl_object package, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_intern.htm">intern</a></td><td width="70%">cl_object cl_intern(cl_narg narg, cl_object string, ...)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_na.htm">package-name</a></td><td width="70%">cl_object cl_package_name(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_ni.htm">package-nicknames</a></td><td width="70%">cl_object cl_package_nicknames(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_sh.htm">package-shadowing-symbols</a></td><td width="70%">cl_object cl_package_shadowing_symbols(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_us.htm">package-use-list</a></td><td width="70%">cl_object cl_package_use_list(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg__1.htm">package-used-by-list</a></td><td width="70%">cl_object cl_package_used_by_list(cl_object package)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkgp.htm">packagep</a></td><td width="70%">cl_object cl_packagep(cl_object object)</td></tr>
|
|
<tr><td width="30%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_pkg_er.htm">package-error-package</a></td><td width="70%">[Only in Common Lisp]</td></tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Numbers.html#Numbers" accesskey="n" rel="next">Numbers</a>, Previous: <a href="Symbols.html" accesskey="p" rel="prev">Symbols</a>, Up: <a href="Standards.html" accesskey="u" rel="up">Standards</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indexes.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|