The Trunk: Kernel-nice.966.mcz

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

The Trunk: Kernel-nice.966.mcz

commits-2
Nicolas Cellier uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-nice.966.mcz

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

Name: Kernel-nice.966
Author: nice
Time: 9 November 2015, 8:48:46.618 pm
UUID: 31f4a1ed-f2fd-4dd5-b2ab-c43df4e8569b
Ancestors: Kernel-mt.965

Provide a simplistic BlockClosure equality test in order to make CharacterSet tests pass again.

Ideally, we should compare the byte codes when isClean, and the outerContext when not.

=============== Diff against Kernel-mt.965 ===============

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

Item was added:
+ ----- Method: BlockClosure>>hash (in category 'comparing') -----
+ hash
+ ^(self method hash + startpc hash) hashMultiply!