July 3, 2009
10:16 a.m.
SmallDictionary, unlike all subclasses of Dictionary, never used ( and initialize ) the instance variable: 'array'.Associations are stored with a key array ( called 'keys' ) and a value array ( 'values' ). Problem is that the method #scanFor: is define in Dictionary ( and not overriden ) with this code : scanFor: anObject | element start finish | finish := array size. .... 'array' is nil and it cause bugs for those methods : -> #includesAssociation: -> #associationAt: -> #associationAt:ifAbsent: -> #associationDeclareAt: