Dec. 31, 2020
12:04 p.m.
Hi Konrad, Could it be that you have overridden = on the class side of your class? Otherwise, I do not see how this can happen. Cheers, Tudor
On Dec 31, 2020, at 12:19 PM, Konrad Hinsen <konrad.hinsen@fastmail.net> wrote:
Hi everyone,
It's been a while since I have encountered mysterious behavior in Pharo, but today it happened. I set up a dictionary with classes as keys, and got "Key not found" errors for keys that were definitely in my dictionary. A quick debugging session showed the underlying issue: I had two references to a class which look the same when inspected, but turn out to be not identical (==) and thus not equal (=). How can this happen?
Konrad.
-- feenk.com "It's not how it is, it is how we see it."