[Issue 10821] .byKey erroneously returns a null key
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 17 01:59:20 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10821
--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-08-17 01:59:09 PDT ---
(In reply to comment #2)
> 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. :)
Oh damn, I can't believe I've run into this hash issue again. And it's very
hard to spot too. I hope we can make new hashes which are not unstable like
this. Hows your new hashes branch going?
--
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