[squeak-dev] The Trunk: Collections-eem.462.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 3 02:12:12 UTC 2011


Eliot Miranda uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-eem.462.mcz

==================== Summary ====================

Name: Collections-eem.462
Author: eem
Time: 2 October 2011, 7:11:42.336 pm
UUID: 50129323-386f-454d-8569-da4400cdc90e
Ancestors: Collections-nice.461

With SequenceableCollection>size being a subclassResponsibility
LinkedList must implement size.  WIth this

	SequenceableCollection allSubclasses select:
		[:c| (c whichClassIncludesSelector: #size)
			== SequenceableCollection]

	=>	an OrderedCollection(SourceFileArray)

which is fine since SourceFileArray is abstract.

=============== Diff against Collections-nice.461 ===============

Item was added:
+ ----- Method: LinkedList>>size (in category 'accessing') -----
+ size
+ 	"Answer how many elements the receiver contains."
+ 
+ 	| tally |
+ 	tally := 0.
+ 	self do: [:each | tally := tally + 1].
+ 	^ tally!




More information about the Squeak-dev mailing list