The Link to 236 points to something else that is not #at:at:
in 
https://github.com/pharo-project/pharo/commit/00f8cff298cf359b63cee4ab1c0a831829e2354a

Why are new sub dictionaries instansiated as a normal Dictionary instead of 
species/class?
I would expect a sub-Dictionary be  of the same class as its parent.
Here is a test case:
----------

| dct key1 key2 subDct |

dct := IdentityDictionary new.
key1 := 'a'.
key2 := key1 copy.
dct
  at: #a at: key1 put: 1;
  at: #a at: key2 put: 2.

subDct := dct at: #a.

TestCase new
  assert: subDct size equals: 2;
  assert: (subDct at: key1) equals: 1;
  assert: (subDct at: key2) equals: 2
----------


Best regards,
Henrik
________________________________
Fra: Pharo-dev <[email protected]> på vegne av Stephane Ducasse 
<[email protected]>
Sendt: 3. september 2017 15:56:36
Til: Pharo Development List
Emne: [Pharo-dev] [ Pharo 70 ] Build 83 PR 236 introduce-at-at-in-dictionary

https://github.com/pharo-project/pharo/pull/236

https://pharo.fogbugz.com/f/cases/20203/

Reply via email to