Never mind, didn't notice IdentityDictionary reimplements keys... :/
On Dec 4, 2009, at 10:10 46AM, Henrik Johansen wrote: > This merely shows there are no tests testing the keys method of an > IdentityDictionary which contains objects for which hash != identityHash... > > Cheers, > Henry > > On Dec 4, 2009, at 9:06 25AM, Lukas Renggli wrote: > >> keys >> "Answer a Set containing the receiver's keys." >> >> | result container | >> result := Set basicNew setTally: tally array: array copy. >> container := result array. >> 1 to: container size do: [ :index | >> (container at: index) >> ifNotNil: [ :assoc | container at: index put: assoc key >> ] ]. >> ^ result > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
