[squeak-dev] The Trunk: Collections-cmm.466.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Dec 26 18:57:44 UTC 2011


Chris Muller uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-cmm.466.mcz

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

Name: Collections-cmm.466
Author: cmm
Time: 29 November 2011, 9:26:57.286 pm
UUID: 3a05d4e5-8c72-4b50-85a2-40eba66bc358
Ancestors: Collections-ul.465

Allow subclasses to override the internal 'array' of a HashedCollection.

=============== Diff against Collections-ul.465 ===============

Item was added:
+ ----- Method: HashedCollection class>>arrayType (in category 'private') -----
+ arrayType
+ 	^ Array!

Item was changed:
  ----- Method: HashedCollection>>growTo: (in category 'private') -----
  growTo: anInteger
  	"Grow the elements array and reinsert the old elements"
  	
  	| oldElements |
  	oldElements := array.
+ 	array := self class arrayType new: anInteger.
- 	array := Array new: anInteger.
  	self noCheckNoGrowFillFrom: oldElements!

Item was changed:
  ----- Method: HashedCollection>>initialize: (in category 'private') -----
  initialize: n
  	"Initialize array to an array size of n"
+ 	array := self class arrayType new: n.
- 	array := Array new: n.
  	tally := 0!




More information about the Squeak-dev mailing list