290 lines
No EOL
6 KiB
HTML
290 lines
No EOL
6 KiB
HTML
<!DOCTYPE HTML>
|
|
<HTML LANG="en-us"
|
|
><HEAD
|
|
><TITLE
|
|
>slot-makunbound | Common Lisp Nova Spec</TITLE
|
|
><META CHARSET="US-ASCII"
|
|
><LINK REL="canonical" HREF="f_slot-makunbound.html"
|
|
><LINK REL="next" HREF="f_slot-missing.html" TYPE="text/html" TITLE="slot-missing"
|
|
><LINK REL="prev" HREF="f_slot-exists-p.html" TYPE="text/html" TITLE="slot-exists-p"
|
|
><LINK REL="up" HREF="7_7_Objects_Dictionary.html" TYPE="text/html" TITLE="7.7 Objects Dictionary"
|
|
><LINK REL="start" HREF="index.html" TYPE="text/html" TITLE="Common Lisp Nova Spec"
|
|
><META NAME="VIEWPORT" CONTENT="width=device-width, initial-scale=1.0"
|
|
><LINK REL="STYLESHEET" HREF="dpans.css%3F3909942064.css"
|
|
><SCRIPT SRC="dpans.js%3F3909942064"
|
|
></SCRIPT
|
|
><SCRIPT SRC="apropos.js%3F3909942064"
|
|
></SCRIPT
|
|
></HEAD
|
|
><BODY
|
|
><DIV
|
|
><DIV CLASS="topnav"
|
|
><DIV CLASS="breadcrumb"
|
|
><SPAN CLASS="breadcrumb-item"
|
|
><A HREF="index.html"
|
|
>Common Lisp Nova Spec</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="7_Objects.html"
|
|
>7. Objects</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="7_7_Objects_Dictionary.html"
|
|
>7.7 Objects Dictionary</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="f_slot-makunbound.html"
|
|
>slot-makunbound</A
|
|
></SPAN
|
|
></DIV
|
|
><DIV CLASS="apropos"
|
|
><DIV CLASS="apropos-io"
|
|
><A HREF="f_slot-exists-p.html" CLASS="prev"
|
|
>←</A
|
|
><SPAN ID="apropos-label"
|
|
>Apropos </SPAN
|
|
><INPUT ID="apropos" AUTOFOCUS="AUTOFOCUS" PLACEHOLDER="Type here to search" ONINPUT="aproposInput(this);" ONKEYUP="aproposKeyup(event);" ONCHANGE="aproposChange(this);" ONFOCUS="aproposFocus(this);" ONFOCUSOUT="aproposFocusout(this);"
|
|
><A HREF="f_slot-missing.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV ID="apropos-res"
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="matter"
|
|
><DIV CLASS="com"
|
|
><DIV CLASS="begincom"
|
|
><HR
|
|
><TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0"
|
|
><TR
|
|
><TD ALIGN="LEFT" VALIGN="BASELINE" WIDTH="100%" CLASS="name"
|
|
><SPAN CLASS="idx" DATA-KIND="idxref" DATA-TERM="slot-makunbound"
|
|
></SPAN
|
|
><B
|
|
>slot-makunbound</B
|
|
></TD
|
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
|
><I
|
|
>Function</I
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
></DIV
|
|
><UL CLASS="subtoc"
|
|
></UL
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Syntax</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><B
|
|
>slot-makunbound</B
|
|
> <SPAN CLASS="cmssi"
|
|
>instance</SPAN
|
|
> <SPAN CLASS="cmssi"
|
|
>slot-name</SPAN
|
|
> <SPAN CLASS="arrow"
|
|
>→</SPAN
|
|
> <SPAN CLASS="cmssi"
|
|
>instance</SPAN
|
|
></P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Arguments and Values</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><VAR CLASS="param"
|
|
>instance</VAR
|
|
> – instance. </P
|
|
><P CLASS="j"
|
|
><VAR CLASS="param"
|
|
>Slot-name</VAR
|
|
> — a <A HREF="26_1_Glossary.html#symbol"
|
|
><EM CLASS="term"
|
|
>symbol</EM
|
|
></A
|
|
>.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Description</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>The <A HREF="26_1_Glossary.html#function"
|
|
><EM CLASS="term"
|
|
>function</EM
|
|
></A
|
|
> <A HREF="f_slot-makunbound.html" CLASS="funref"
|
|
><B
|
|
>slot-makunbound</B
|
|
></A
|
|
> restores a <A HREF="26_1_Glossary.html#slot"
|
|
><EM CLASS="term"
|
|
>slot</EM
|
|
></A
|
|
> of the name <VAR CLASS="param"
|
|
>slot-name</VAR
|
|
> in an <VAR CLASS="param"
|
|
>instance</VAR
|
|
> to the unbound state.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Exceptional Situations</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>If no <A HREF="26_1_Glossary.html#slot"
|
|
><EM CLASS="term"
|
|
>slot</EM
|
|
></A
|
|
> of the name <VAR CLASS="param"
|
|
>slot-name</VAR
|
|
> exists in the <VAR CLASS="param"
|
|
>instance</VAR
|
|
>, <A HREF="f_slot-missing.html" CLASS="funref"
|
|
><B
|
|
>slot-missing</B
|
|
></A
|
|
> is called as follows:</P
|
|
><PRE CLASS="screen"
|
|
>(slot-missing (class-of <I CLASS="i"
|
|
><I
|
|
>instance</I
|
|
></I
|
|
>)
|
|
<I CLASS="i"
|
|
><I
|
|
>instance</I
|
|
></I
|
|
>
|
|
<I CLASS="i"
|
|
><I
|
|
>slot-name</I
|
|
></I
|
|
>
|
|
'slot-makunbound)</PRE
|
|
><P CLASS="j"
|
|
>(Any values returned by <A HREF="f_slot-missing.html" CLASS="funref"
|
|
><B
|
|
>slot-missing</B
|
|
></A
|
|
> in this case are ignored by <A HREF="f_slot-makunbound.html" CLASS="funref"
|
|
><B
|
|
>slot-makunbound</B
|
|
></A
|
|
>.) </P
|
|
><P CLASS="j"
|
|
>The specific behavior depends on <VAR CLASS="param"
|
|
>instance</VAR
|
|
>’s <A HREF="26_1_Glossary.html#metaclass"
|
|
><EM CLASS="term"
|
|
>metaclass</EM
|
|
></A
|
|
>. An error is never signaled if <VAR CLASS="param"
|
|
>instance</VAR
|
|
> has <A HREF="26_1_Glossary.html#metaclass"
|
|
><EM CLASS="term"
|
|
>metaclass</EM
|
|
></A
|
|
> <A HREF="t_standard-class.html" CLASS="typeref"
|
|
><B
|
|
>standard-class</B
|
|
></A
|
|
>. An error is always signaled if <VAR CLASS="param"
|
|
>instance</VAR
|
|
> has <A HREF="26_1_Glossary.html#metaclass"
|
|
><EM CLASS="term"
|
|
>metaclass</EM
|
|
></A
|
|
> <A HREF="t_built-in-class.html" CLASS="typeref"
|
|
><B
|
|
>built-in-class</B
|
|
></A
|
|
>. The consequences are undefined if <VAR CLASS="param"
|
|
>instance</VAR
|
|
> has any other <A HREF="26_1_Glossary.html#metaclass"
|
|
><EM CLASS="term"
|
|
>metaclass</EM
|
|
></A
|
|
>–an error might or might not be signaled in this situation. Note in particular that the behavior for <A HREF="26_1_Glossary.html#condition"
|
|
><EM CLASS="term"
|
|
>conditions</EM
|
|
></A
|
|
> and <A HREF="26_1_Glossary.html#structure"
|
|
><EM CLASS="term"
|
|
>structures</EM
|
|
></A
|
|
> is not specified.</P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>See Also</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><A HREF="f_slot-boundp.html" CLASS="funref"
|
|
><B
|
|
>slot-boundp</B
|
|
></A
|
|
>, <A HREF="f_slot-missing.html" CLASS="funref"
|
|
><B
|
|
>slot-missing</B
|
|
></A
|
|
></P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Notes</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>Although no <A HREF="26_1_Glossary.html#implementation"
|
|
><EM CLASS="term"
|
|
>implementation</EM
|
|
></A
|
|
> is required to do so, implementors are strongly encouraged to implement the <A HREF="26_1_Glossary.html#function"
|
|
><EM CLASS="term"
|
|
>function</EM
|
|
></A
|
|
> <A HREF="f_slot-makunbound.html" CLASS="funref"
|
|
><B
|
|
>slot-makunbound</B
|
|
></A
|
|
> using the <A HREF="26_1_Glossary.html#function"
|
|
><EM CLASS="term"
|
|
>function</EM
|
|
></A
|
|
> <CODE CLASS="f"
|
|
>slot-makunbound-using-class</CODE
|
|
> described in the <A HREF="26_1_Glossary.html#Metaobject_Protocol"
|
|
><EM CLASS="term"
|
|
>Metaobject Protocol</EM
|
|
></A
|
|
>.</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="footer"
|
|
><DIV CLASS="btmnav"
|
|
><A HREF="f_slot-exists-p.html" CLASS="prev"
|
|
>←</A
|
|
><A HREF="f_slot-missing.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV CLASS="trail"
|
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
|
></DIV
|
|
></DIV
|
|
><SCRIPT
|
|
>domReady();</SCRIPT
|
|
></BODY
|
|
></HTML
|
|
> |