Dictionary keys that exist but can't be found

Chris Becker chb99 at msn.com
Thu Apr 11 01:23:42 UTC 2002

Hi all,

I've been running into problems with a Dictionary whose keys are of the
class Point. When I attempt to locate certain keys with the "at:" method, it
fails to find them even though inspection shows they are clearly present.

Everything seems to work fine until the dictionary grows in size, and then
certain keys can no longer be found using "at:". I sent "keys inspect" to
the dictionary and found nil keys sprinkled throughout, then went digging
and found where Dictionary "at:" uses "findElementOrNil:", and this method
stops searching when it hits a nil key.

I've had this problem with the Dictionary class before using a class that I
created as the key. Are there any caveats with this class I may not be aware

Thanks in advance for your help,


More information about the Squeak-dev mailing list