[squeak-dev] The Trunk: Collections-ct.874.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Apr 7 21:01:36 UTC 2022


Christoph Thiede uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ct.874.mcz

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

Name: Collections-ct.874
Author: ct
Time: 11 February 2020, 7:25:50.309089 pm
UUID: 14d05b93-c004-0248-afe6-dafa44b27bc2
Ancestors: Collections-topa.873

Adds constructors for PluggableDictionary and PluggableSet. This is also a useful way to document the aspect that you should not specify an equal block without a hash block.

=============== Diff against Collections-topa.873 ===============

Item was added:
+ ----- Method: PluggableDictionary class>>hashBlock: (in category 'instance creation') -----
+ hashBlock: aHashBlock
+ 
+ 	^ self new
+ 		hashBlock: aHashBlock;
+ 		yourself!

Item was added:
+ ----- Method: PluggableDictionary class>>hashBlock:equalBlock: (in category 'instance creation') -----
+ hashBlock: aHashBlock equalBlock: anEqualBlock
+ 
+ 	^ self new
+ 		hashBlock: aHashBlock;
+ 		equalBlock: anEqualBlock;
+ 		yourself!

Item was added:
+ ----- Method: PluggableSet class>>hashBlock: (in category 'instance creation') -----
+ hashBlock: aHashBlock
+ 
+ 	^ self new
+ 		hashBlock: aHashBlock;
+ 		yourself!

Item was added:
+ ----- Method: PluggableSet class>>hashBlock:equalBlock: (in category 'instance creation') -----
+ hashBlock: aHashBlock equalBlock: anEqualBlock
+ 
+ 	^ self new
+ 		hashBlock: aHashBlock;
+ 		equalBlock: anEqualBlock;
+ 		yourself!



More information about the Squeak-dev mailing list