forked from robert-strandh/CLOS-MOP-HTML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadd-direct-method.html
79 lines (64 loc) · 2.13 KB
/
add-direct-method.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<HTML>
<HEAD>
<TITLE>add-direct-method</TITLE>
<LINK rel="stylesheet" type="text/css" href="clos-mop.css">
</HEAD>
<BODY>
<ul class=navigation>
<a href="table-of-contents.html" title="Table of contents">
<li class=navigation><img src="toc.png" alt="TOC">
</li>
</a>
<a href="all-no-methods.html" title="Up">
<li class=navigation><img src="up.png" alt="Up">
</li>
</a>
</ul>
<A NAME="add-direct-method"><I>Generic Function</I> <B>ADD-DIRECT-METHOD</B>
<P><B>Syntax:</B></P>
<P><B>add-direct-method</B> <I>specializer</I> <I>method</I> =>
<I>unspecified</I>
<P><B>Arguments and values:</B></P>
<P><I>specializer</I> -- A specializer metaobject.</P>
<P><I>method</I> -- A method metaobject.</P>
<P><B>Description:</B></P>
<p>
This generic function is called to maintain a set of backpointers from a
specializer to the set of methods specialized to it. If <I>method</I> is
already in the set, it is not added again (no error is signaled).
</p>
<p>
This set can be accessed as a list by calling the generic function
<a href="specializer-direct-methods.html">specializer-direct-methods</a>.
Methods are removed from the set by
<a href="remove-direct-method.html">remove-direct-method</a>.
</p>
<p>
The generic function <B>add-direct-method</B> is called by
<a href="add-method.html">add-method</a>
whenever a method is added to a generic function. It is called once for each
of the specializers of the method. Note that in cases where a specializer
appears more than once in the specializers of a method, this generic function
will be called more than once with the same specializer as argument.
</p>
<p>
The results are undefined if the <I>specializer</I> argument is not one of the
specializers of the <I>method</I> argument.
</p>
<P><B>Methods:</B></P>
<table>
<tr>
<td><a href="add-direct-method-class.html">
<B>add-direct-method</B> (<I>specializer</I> class)
(<I>method</I> method)</a>
</td>
</tr>
<tr>
<td><a href="add-direct-method-eql-specializer.html">
<B>add-direct-method</B> (<I>specializer</I> eql-specializer)
(<I>method</I> method)</a>
</td>
</tr>
</table>
</BODY>
</HTML>