[squeak-dev] The Trunk: EToys-nice.41.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 24 02:06:26 UTC 2009

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

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

Name: EToys-nice.41
Author: nice
Time: 24 December 2009, 3:05:54 am
UUID: cc186e17-ba38-48f0-90ee-cf7302307e23
Ancestors: EToys-ul.40

Use scaledIdentityHash for hashing

=============== Diff against EToys-ul.40 ===============

Item was changed:
  ----- Method: Player>>recaptureUniqueCostumes (in category 'costume') -----
  	"Recapture all unique sketch-like costumes. Debugging only."
  	| unique |
  	costumes ifNil:[^self].
  	unique := PluggableSet new 
  				equalBlock:[:s1 :s2| s1 form == s2 form];
+ 				hashBlock:[:s| s form scaledIdentityHash].
- 				hashBlock:[:s| s form identityHash].
  	unique addAll: (costumes select:[:c| c isSketchMorph]).
  	unique := unique asIdentitySet.
  	costumes := costumes select:[:c|
  		(c isSketchMorph) not or:[unique includes: c]].

More information about the Squeak-dev mailing list