The Inbox: Collections-ct.874.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Collections-ct.874.mcz

commits-2
Christoph Thiede uploaded a new version of Collections to project The Inbox:
http://source.squeak.org/inbox/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!