[Issue 10821] .byKey erroneously returns a null key

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 16 22:23:00 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10821



--- Comment #2 from hsteoh at quickfur.ath.cx 2013-08-16 22:23:00 PDT ---
Oh actually, nevermind, the delegate removed itself from the hash.

Ahhh, I see what's going on. You're modifying the AA while iterating over it.
That's very bad, because byKey is implemented using a pointer to the current
Slot. But once the delegate removes itself from the table, this pointer is
invalidated. That's the bug in your code. :)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list