211 lines
11 KiB
HTML
211 lines
11 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>Objects (ECL Manual)</title>
|
||
|
|
||
|
<meta name="description" content="Objects (ECL Manual)">
|
||
|
<meta name="keywords" content="Objects (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="Structures.html" rel="next" title="Structures">
|
||
|
<link href="Data-and-control-flow.html#Data-and-control-flow" rel="prev" title="Data and control flow">
|
||
|
<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="Objects">
|
||
|
<div class="nav-panel">
|
||
|
<p>
|
||
|
Next: <a href="Structures.html" accesskey="n" rel="next">Structures</a>, Previous: <a href="Data-and-control-flow.html#Data-and-control-flow" accesskey="p" rel="prev">Data and control flow</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="Objects-1">2.5 Objects</h3>
|
||
|
|
||
|
<ul class="mini-toc">
|
||
|
<li><a href="Objects.html#C-Reference-5" accesskey="1">C Reference</a></li>
|
||
|
</ul>
|
||
|
<div class="subsection-level-extent" id="C-Reference-5">
|
||
|
<h4 class="subsection">2.5.1 C Reference</h4>
|
||
|
|
||
|
<ul class="mini-toc">
|
||
|
<li><a href="Objects.html#ANSI-Dictionary-3" accesskey="1">ANSI Dictionary</a></li>
|
||
|
</ul>
|
||
|
<div class="subsubsection-level-extent" id="ANSI-Dictionary-3">
|
||
|
<h4 class="subsubsection">2.5.1.1 ANSI Dictionary</h4>
|
||
|
<p>Common Lisp and C equivalence
|
||
|
</p>
|
||
|
<table class="multitable">
|
||
|
<thead><tr><th width="35%">Lisp symbol</th><th width="65%">C function</th></tr></thead>
|
||
|
<tbody><tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_fn_kwd.htm">function-keywords</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_ensure.htm">ensure-generic-function</a></td><td width="65%">cl_object cl_ensure_generic_function(cl_narg narg, cl_object function_name, ...)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_alloca.htm">allocate-instance</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_reinit.htm">reinitialize-instance</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_shared.htm">shared-initialize</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_update.htm">update-instance-for-different-class</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_upda_1.htm">update-instance-for-redefined-class</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_chg_cl.htm">change-class</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_bo.htm">slot-boundp</a></td><td width="65%">cl_object cl_slot_boundp(cl_object instance, cl_object slot_name)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_ex.htm">slot-exists-p</a></td><td width="65%">cl_object cl_slot_exists_p(cl_object instance, cl_object slot_name)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_ma.htm">slot-makunbound</a></td><td width="65%">cl_object cl_slot_makunbound(cl_object instance, cl_object slot_name)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_mi.htm">slot-missing</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_un.htm">slot-unbound</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_slt_va.htm">slot-value</a></td><td width="65%">cl_object cl_slot_value(cl_object instance, cl_object slot_name)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_method.htm">method-qualifiers</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_no_app.htm">no-applicable-method</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_no_nex.htm">no-next-method</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_rm_met.htm">remove-method</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_ins.htm">make-instance</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_i_1.htm">make-instances-obsolete</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_ld_.htm">make-load-form</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_l_1.htm">make-load-form-saving-slots</a></td><td width="65%">cl_object cl_make_load_form_saving_slots(cl_narg narg, cl_object object, ...)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_find_c.htm">find-class</a></td><td width="65%">cl_object cl_find_class(cl_narg narg, cl_object symbol, ...)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_comput.htm">compute-applicable-methods</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_find_m.htm">find-method</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_add_me.htm">add-method</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_init_i.htm">initialize-instance</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_class_.htm">class-name</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_opsetf.htm">(setf class-name)</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_clas_1.htm">class-of</a></td><td width="65%">cl_object cl_class_of(cl_object object)</td></tr>
|
||
|
<tr><td width="35%"><a class="url" href="http://www.lispworks.com/documentation/HyperSpec/Body/f_unboun.htm">unbound-slot-instance</a></td><td width="65%">[Only in Common Lisp]</td></tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr>
|
||
|
<div class="nav-panel">
|
||
|
<p>
|
||
|
Next: <a href="Structures.html" accesskey="n" rel="next">Structures</a>, Previous: <a href="Data-and-control-flow.html#Data-and-control-flow" accesskey="p" rel="prev">Data and control flow</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>
|