[squeak-dev] The Trunk: Kernel-nice.966.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Nov 9 19:49:24 UTC 2015


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!



More information about the Squeak-dev mailing list