# HG changeset patch # User Claus Gittinger # Date 831034650 -7200 # Node ID 9446f8ea694185376c6aab64714b3eec4c56448e # Parent a9b510f110a60518747a03c196752b2e3c387468 docu diff -r a9b510f110a6 -r 9446f8ea6941 Coll.st --- a/Coll.st Tue Apr 30 20:03:58 1996 +0200 +++ b/Coll.st Thu May 02 12:57:30 1996 +0200 @@ -44,6 +44,20 @@ These basic methods are usually defined as #subclassResponsibility here. Some methods are also redefined for better performance. + Subclasses should at least implement: + do: - enumerate elements + + they should implement one of the following set of access messages: + keyed collections: + at:ifAbsent: - fetching an element + at: - fetching an element + at:put: - storing an element + + unkeyed collections: + add: - add an element + remove:ifAbsent: - remove an element + + [author:] Claus Gittinger " @@ -1453,6 +1467,6 @@ !Collection class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/Attic/Coll.st,v 1.52 1996-04-25 16:12:44 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Attic/Coll.st,v 1.53 1996-05-02 10:57:30 cg Exp $' ! ! Collection initialize! diff -r a9b510f110a6 -r 9446f8ea6941 Collection.st --- a/Collection.st Tue Apr 30 20:03:58 1996 +0200 +++ b/Collection.st Thu May 02 12:57:30 1996 +0200 @@ -44,6 +44,20 @@ These basic methods are usually defined as #subclassResponsibility here. Some methods are also redefined for better performance. + Subclasses should at least implement: + do: - enumerate elements + + they should implement one of the following set of access messages: + keyed collections: + at:ifAbsent: - fetching an element + at: - fetching an element + at:put: - storing an element + + unkeyed collections: + add: - add an element + remove:ifAbsent: - remove an element + + [author:] Claus Gittinger " @@ -1453,6 +1467,6 @@ !Collection class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.52 1996-04-25 16:12:44 cg Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/Collection.st,v 1.53 1996-05-02 10:57:30 cg Exp $' ! ! Collection initialize!