[squeak-dev] Should Dictionary associations be shared?

Chris Muller ma.chris.m at gmail.com
Sat Dec 22 19:53:55 UTC 2012


This following assertion fails.

|d1 d2 | d1:=Dictionary new.  d2:=Dictionary new.
d1 at: 'one' put: 1.   d2 at: 'two' put: 2.
d1 addAll: d2.
d2 at: 'two' put: nil.
self assert: (d1 at: 'two')=2

To me it seems like Associations should not be shared between
Dictionary's.  Thoughts?


More information about the Squeak-dev mailing list