219 lines
No EOL
5.2 KiB
HTML
219 lines
No EOL
5.2 KiB
HTML
<!DOCTYPE HTML>
|
|
<HTML LANG="en-us"
|
|
><HEAD
|
|
><TITLE
|
|
>generic-function | Common Lisp Nova Spec</TITLE
|
|
><META CHARSET="US-ASCII"
|
|
><LINK REL="canonical" HREF="t_generic-function.html"
|
|
><LINK REL="next" HREF="t_standard-generic-function.html" TYPE="text/html" TITLE="standard-generic-function"
|
|
><LINK REL="prev" HREF="t_compiled-function.html" TYPE="text/html" TITLE="compiled-function"
|
|
><LINK REL="up" HREF="4_4_Types_and_Classes_Dictionary.html" TYPE="text/html" TITLE="4.4 Types and Classes 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="4_Types_and_Classes.html"
|
|
>4. Types and Classes</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="4_4_Types_and_Classes_Dictionary.html"
|
|
>4.4 Types and Classes Dictionary</A
|
|
></SPAN
|
|
> <SPAN CLASS="breadcrumb-item"
|
|
>→ <A HREF="t_generic-function.html"
|
|
>generic-function</A
|
|
></SPAN
|
|
></DIV
|
|
><DIV CLASS="apropos"
|
|
><DIV CLASS="apropos-io"
|
|
><A HREF="t_compiled-function.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="t_standard-generic-function.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="generic-function"
|
|
></SPAN
|
|
><B
|
|
>generic-function</B
|
|
></TD
|
|
><TD ALIGN="RIGHT" VALIGN="BASELINE" WIDTH="0" NOWRAP="NOWRAP" CLASS="ftype"
|
|
><I
|
|
>System</I
|
|
> <I
|
|
>Class</I
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
></DIV
|
|
><UL CLASS="subtoc"
|
|
></UL
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Class Precedence List</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
><A HREF="t_generic-function.html" CLASS="typeref"
|
|
><B
|
|
>generic-function</B
|
|
></A
|
|
>, <A HREF="t_function.html" CLASS="typeref"
|
|
><B
|
|
>function</B
|
|
></A
|
|
>, <A HREF="t_t.html" CLASS="typeref"
|
|
><B
|
|
>t</B
|
|
></A
|
|
></P
|
|
></DD
|
|
><DT
|
|
><B
|
|
>Description</B
|
|
></DT
|
|
><DD
|
|
><P CLASS="j"
|
|
>A <DFN CLASS="newterm"
|
|
><SPAN CLASS="cmbxsl"
|
|
>generic</SPAN
|
|
> <SPAN CLASS="cmbxsl"
|
|
>function</SPAN
|
|
></DFN
|
|
> <SPAN CLASS="idx" DATA-KIND="idxterm" DATA-TERM="generic function"
|
|
></SPAN
|
|
>is a <A HREF="26_1_Glossary.html#function"
|
|
><EM CLASS="term"
|
|
>function</EM
|
|
></A
|
|
> whose behavior depends on the <A HREF="26_1_Glossary.html#class"
|
|
><EM CLASS="term"
|
|
>classes</EM
|
|
></A
|
|
> or identities of the <A HREF="26_1_Glossary.html#argument"
|
|
><EM CLASS="term"
|
|
>arguments</EM
|
|
></A
|
|
> supplied to it. A generic function object contains a set of <A HREF="26_1_Glossary.html#method"
|
|
><EM CLASS="term"
|
|
>methods</EM
|
|
></A
|
|
>, a <A HREF="26_1_Glossary.html#lambda_list"
|
|
><EM CLASS="term"
|
|
>lambda list</EM
|
|
></A
|
|
>, a <A HREF="26_1_Glossary.html#method_combination"
|
|
><EM CLASS="term"
|
|
>method combination</EM
|
|
></A
|
|
> <A HREF="26_1_Glossary.html#type"
|
|
><EM CLASS="term"
|
|
>type</EM
|
|
></A
|
|
>, and other information. The <A HREF="26_1_Glossary.html#method"
|
|
><EM CLASS="term"
|
|
>methods</EM
|
|
></A
|
|
> define the class-specific behavior and operations of the <A HREF="26_1_Glossary.html#generic_function"
|
|
><EM CLASS="term"
|
|
>generic function</EM
|
|
></A
|
|
>; a <A HREF="26_1_Glossary.html#method"
|
|
><EM CLASS="term"
|
|
>method</EM
|
|
></A
|
|
> is said to <A HREF="26_1_Glossary.html#specialize"
|
|
><EM CLASS="term"
|
|
>specialize</EM
|
|
></A
|
|
> a <A HREF="26_1_Glossary.html#generic_function"
|
|
><EM CLASS="term"
|
|
>generic function</EM
|
|
></A
|
|
>. When invoked, a <A HREF="26_1_Glossary.html#generic_function"
|
|
><EM CLASS="term"
|
|
>generic function</EM
|
|
></A
|
|
> executes a subset of its <A HREF="26_1_Glossary.html#method"
|
|
><EM CLASS="term"
|
|
>methods</EM
|
|
></A
|
|
> based on the <A HREF="26_1_Glossary.html#class"
|
|
><EM CLASS="term"
|
|
>classes</EM
|
|
></A
|
|
> or identities of its <A HREF="26_1_Glossary.html#argument"
|
|
><EM CLASS="term"
|
|
>arguments</EM
|
|
></A
|
|
>. </P
|
|
><P CLASS="j"
|
|
>A <A HREF="26_1_Glossary.html#generic_function"
|
|
><EM CLASS="term"
|
|
>generic function</EM
|
|
></A
|
|
> can be used in the same ways that an ordinary <A HREF="26_1_Glossary.html#function"
|
|
><EM CLASS="term"
|
|
>function</EM
|
|
></A
|
|
> can be used; specifically, a <A HREF="26_1_Glossary.html#generic_function"
|
|
><EM CLASS="term"
|
|
>generic function</EM
|
|
></A
|
|
> can be used as an argument to <A HREF="f_funcall.html" CLASS="funref"
|
|
><B
|
|
>funcall</B
|
|
></A
|
|
> and <A HREF="f_apply.html" CLASS="funref"
|
|
><B
|
|
>apply</B
|
|
></A
|
|
>, and can be given a global or a local name.</P
|
|
></DD
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV CLASS="footer"
|
|
><DIV CLASS="btmnav"
|
|
><A HREF="t_compiled-function.html" CLASS="prev"
|
|
>←</A
|
|
><A HREF="t_standard-generic-function.html" CLASS="next"
|
|
>→</A
|
|
></DIV
|
|
><DIV CLASS="trail"
|
|
>Conversion to HTML copyright 2023 by Gilbert Baumann</DIV
|
|
></DIV
|
|
></DIV
|
|
><SCRIPT
|
|
>domReady();</SCRIPT
|
|
></BODY
|
|
></HTML
|
|
> |