On May 30, 2008, at 1:57 PM, Eric Winger wrote:
> This is the easiest reproduction case I could come up with.
>
> Inspect this:
>
> | d |
> d := IdentityDictionary new.
> d at: ('aTest' copy) put: 1.
> d at: ('aTest' copy) put: 3.
> d at: ('aTest' copy) put: 5.
> d
>
> Then dive into the first element, 1.
> Pop back out and dive into the second element.
> You are inspecting the first element, 1. Not 3.
>
> The problem seems to be that KeyedElement>>sameTypeEquals: uses an
> equality test. If there are equal keys in the list, this problem will
> occur.
>
> Perhaps a identity test would be better?
Thanks Eric very much. 54448 has been created. I appreciate the
diagnosis of the prob as well. And the test case.
--
Travis Griggs
Objologist
"Dying men never wish they'd spent more time at the office"
_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc