The Inbox: Kernel-ul.965.mcz

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

The Inbox: Kernel-ul.965.mcz

commits-2
Levente Uzonyi uploaded a new version of Kernel to project The Inbox:
http://source.squeak.org/inbox/Kernel-ul.965.mcz

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

Name: Kernel-ul.965
Author: ul
Time: 2 November 2015, 4:57:55.804 am
UUID: d1932681-6382-4a22-bbb8-f0dd6df8b029
Ancestors: Kernel-ul.964

To be able to compare PluggableSets and PluggableDictionaries, we have to provide BlockClosure >> #=.

=============== Diff against Kernel-ul.964 ===============

Item was added:
+ ----- Method: BlockClosure>>= (in category 'comparing') -----
+ = anObject
+
+ anObject == self ifTrue: [ ^true ].
+ anObject class == self class ifFalse: [ ^false ].
+ anObject outerContext method = outerContext method ifFalse: [ ^false ].
+ anObject outerContext receiver = outerContext receiver ifFalse: [ ^false ].
+ anObject startpc = startpc ifFalse: [ ^false ].
+ ^anObject numArgs = numArgs!

Item was added:
+ ----- Method: BlockClosure>>hash (in category 'comparing') -----
+ hash
+
+ ^((self class hash
+ bitXor: outerContext method hash)
+ bitXor: outerContext receiver hash)
+ bitXor: ((startpc bitShift: 8) + numArgs) hashMultiply!