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

commits at source.squeak.org commits at source.squeak.org
Tue Mar 10 00:17:48 UTC 2020

Nicolas Cellier uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-nice.1315
Author: nice
Time: 10 March 2020, 1:17:28.155986 am
UUID: 10c5ea97-f473-493c-8598-4bd06316ca6b
Ancestors: Kernel-nice.1314

Fix FullBlockClosure comparison.
Super would compare startpc which is only relevant in super (where startpc point to bytecode sequence in home method).
FullBlockClosure must compare their compiledBlock which live separately.

[:a|1]=[:b|1] = true.
[:a|2]=[:b|1] = false.

=============== Diff against Kernel-nice.1314 ===============

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

More information about the Squeak-dev mailing list