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

Re: [vwnc] Dives into some inspector elements wrong

by Valloud, Andres :: Rate this Message:

Reply to Author | View in Thread

AR 54447...

-----Original Message-----
From: vwnc-bounces@... [mailto:vwnc-bounces@...] On
Behalf Of Eric Winger
Sent: Friday, May 30, 2008 1:58 PM
To: vwnc-list
Subject: [vwnc] Dives into some inspector elements wrong

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?

eric


_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

_______________________________________________
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!