26 Apr 12:59
[chatter] r11776 - trunk/www/books/dpg
From: <hannes <at> mccarthy.opendylan.org>
Subject: [chatter] r11776 - trunk/www/books/dpg
Newsgroups: gmane.comp.lang.dylan.gwydion.cvs
Date: 2008-04-26 11:02:59 GMT
Subject: [chatter] r11776 - trunk/www/books/dpg
Newsgroups: gmane.comp.lang.dylan.gwydion.cvs
Date: 2008-04-26 11:02:59 GMT
Author: hannes
Date: Sat Apr 26 13:02:57 2008
New Revision: 11776
Modified:
trunk/www/books/dpg/db_253.html
Log:
Job: website
unindent the "end class"
Modified: trunk/www/books/dpg/db_253.html
==============================================================================
--- trunk/www/books/dpg/db_253.html (original)
+++ trunk/www/books/dpg/db_253.html Sat Apr 26 13:02:57 2008
@@ -32,7 +32,7 @@
// smaller than another comparison value</em>
constant slot comparison-function :: <function> = \<,
init-keyword: comparison-function:;
- end class <sorted-sequence>; </pre></td></tr></table>
+end class <sorted-sequence>; </pre></td></tr></table>
<p>Because is there is a well-defined ordering of the elements of sorted sequences, we choose
<code><sequence></code> to be the superclass of <code><sorted-sequence></code>. We
use the built-in collection class called <code><stretchy-vector></code> to store the elements
of our sorted sequence, because we want to be able to have the sorted sequence grow to any size in a
convenient way.</p>
<p>The slots <code>comparison-function</code> and <code>value-function</code> are constant slots,
because we intend to have clients specify these functions only when they create the sorted sequence. If we
had decided to let clients change the value of these slots, we would have made the slots virtual, so that we
could reorder the data vector after either function had changed. </p>
<p>Now that we have covered the structure and initialization of the sorted sequence data structure, we can
(Continue reading)
RSS Feed