Update of /var/lib/cvs/www/books/dpg
In directory cantor:/tmp/cvs-serv26764
Modified Files:
db_76.html
Log Message:
replace graphic with text table
Index: db_76.html
===================================================================
RCS file: /var/lib/cvs/www/books/dpg/db_76.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- db_76.html 29 Mar 2004 02:13:55 -0000 1.6
+++ db_76.html 29 Mar 2004 04:54:36 -0000 1.7
@@ -39,8 +39,33 @@
<p>For <code>decode-total-seconds</code>, there is either no or one applicable
method for any argument. If there is one applicable method, it is called. If
there is no applicable method, the "No applicable method" error is signaled.
There is no need to continue to step 2. </p>
<p>In other cases, there can be several applicable methods. Consider the
generic function <code>say-greeting</code>, shown in <a
href="#marker-9-196">Figure 5.4</a>. <a href="#marker-9-192">Table 5.2</a>
shows that, for certain arguments, one method is applicable, but that, for an
integer argument, two methods are applicable. </p>
<p>When the argument is <code>7</code>, a direct instance of
<code><integer></code>, the method on <code><object></code> is
applicable, because <code>7</code> is an instance of
<code><object></code> (the method's parameter specializer); the method on
<code><integer></code> also is applicable, because <code>7</code> is an
instance of <code><integer></code> (the method's parameter
specializer).</p>
-<table><caption>Figure 5.4 <a name="marker-9-196"></a>The
<code>say-greeting</code> generic function and its
methods.</caption><tr><td><p><img alt="db76im11" src="db76im11.gif" /></p>
-</td></tr></table><table><caption>Table 5.2 <a
name="marker-9-192"></a>Applicable methods for different arguments to
<code>say-greeting</code>.</caption><tr><th><p>Argument</p>
+
+<table class="generic-function">
+ <caption>Figure 5.4 <a name="marker-9-196"></a>The
<code>say-greeting</code> generic function and its methods.</caption>
+ <tr>
+ <th>
+ Generic function <code>say-greeting</code>
+ </th>
+ </tr>
+ <tr>
+ <td>
+<pre><code>define method say-greeting (greeting :: <object>)
+ format-out("%s\n", greeting);
+end;
+</code></pre>
+ </td>
+ </tr>
+ <tr>
+ <td>
+<pre><code>define method say-greeting (greeting :: <integer>)
+ format-out("Your lucky number is %s.\n", greeting);
+end;
+</code></pre>
+ </td>
+ </tr>
+</table>
+
+<table><caption>Table 5.2 <a name="marker-9-192"></a>Applicable methods for
different arguments to
<code>say-greeting</code>.</caption><tr><th><p>Argument</p>
</th><th><p>Applicable method(s)</p>
</th></tr><tr><td><p><code>7 </code></p>
</td><td><p>method on <code><object></code> method on
<code><integer></code></p>
_______________________________________________
Gd-chatter mailing list
Gd-chatter@xxxxxxxxxxxxxxxx
http://www.gwydiondylan.org/mailman/listinfo/gd-chatter
|
|