« Return to Thread: [vwnc] Dives into some inspector elements wrong

Re: [vwnc] Dives into some inspector elements wrong

by Travis Griggs-3 :: Rate this Message:

Reply to Author | View in Thread


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

 « Return to Thread: [vwnc] Dives into some inspector elements wrong

LightInTheBox - Buy quality products at wholesale price!