[squeak-dev] Dictionary>>rehash is OK

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Dictionary>>rehash is OK

Ralph Boland
After finding this problem in my "clean" Squeak 3.10.2
image I went back to the original image and found
that in fact  Dictionary>>rehash was in fact there.
Sorry for wasting your time.

Ralph Boland


> In my own Squeak project I have a method

> Dictionary>>rehash.

> I don't remember why I wrote this method but
> I just noticed that Dictionary>>rehash is not in
> the original  Squeak 3.10.2 code.
> Furthermore if used it should fail because
> it will inherit rehash from Set which doesn't
> work for Dictionaries.  My Dictionary>>rehash
> method is like the one in Set except
> associationsDo:  is used instead of  do:.

> Is this a bug?

>  What is the purpose of rehash anyway?