[squeak-dev] #= ==> #hash issues

Bert Freudenberg bert at freudenbergs.de
Thu Nov 15 19:29:32 UTC 2018


Isn't this extremely simple to fix?

#= is implemented in terms of start, step, and last.

So why not implement #hash as

^(start hash bitXor: step hash) bitXor: self last hash

Then in the postscript do a

HashedCollection rehashAll

and that should be it, right?

I did a quick check using

Dictionary allInstances select: [ :dict | dict keys anySatisfy: #isInterval]

and the system seems fine after that.

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181115/3e8cbe88/attachment.html>


More information about the Squeak-dev mailing list