FogBugz (Fall [Issue]16760) Collection - Dictionary>>= breaks when comparing identity and non-identity dictionaries

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

FogBugz (Fall [Issue]16760) Collection - Dictionary>>= breaks when comparing identity and non-identity dictionaries

Pharo Issue Tracker
FogBugz Notification
avatar
Bug in Project:  Collection: 1. Pharo Image  •  You are subscribed to this case
Yes, I think this is the right way. Now both, #= and #hash rely on
species.

In the prior solution (slice2), in this example
<code>
s := 'test'.
s1:= IdentityDictionary new.
s2:= SmallIdentityDictionary new.
s1 at:s put:4.
s2 at:s put:4.
s1 = s2.
s2 = s1.
s1 hash = s2 hash.
</code>

s1 = s2 would be true, but s1 hash is different from s2 hash.
With slice 3, this now works as expected.
Priority Priority: 3 – Must Fix Status Status: Resolved (Fix Review Needed)
Assigned To Assigned to: monty2 Milestone Milestone: Pharo5.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker