[squeak-dev] The Trunk: Collections-ul.668.mcz
Stéphane Rollandin
lecteur at zogotounga.net
Tue Oct 13 08:28:11 UTC 2015
> d1 := PluggableDictionary new.
> d2 := PluggableDictionary new equalBlock: #==.
> d1 at: 'test' copy put: 4.
> d2 at: 'test' put: 4.
> {d1 = d2.
> d2 = d1}
But does it always make sense to say that two dictionaries are equal
even though they do not have the same equalBlock ?
It seems to me there are different semantics for dictionary equality
here: one testing if the associations are equal, one testing if the
expected behavior (at large) of the dictionaries are equal. The single
#= test is overload at the moment.
Stef
More information about the Squeak-dev
mailing list
|