[Issue 4179] Deleting items from an associative array iterated over

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 29 08:42:50 PDT 2011


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



--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-03-29 08:39:23 PDT ---
segfault? I didn't think that anyone was getting a segfault from this. If
there's a segfault, then that's obviously bad. I'm not sure that it's
technically unsafe though. That would depend on whether it could possibly
corrupt memory. If it's guarantee to segfault and never corrupt memory, then I
don't believe that it's technically unsafe and therefore would not be a problem
for SafeD. Still, one would hope that it could do better than a segfault. I
thought that it was throwing an exception though.

If it's segfaulting, that would put increased pressure on either flagging it as
a warning or fixing it so that it's not necessary (but that may not be
reasonable if you want AA's to be reasonably efficient - I don't know how
iterating over them is implemented). However, if it's a segfault with no risk
of memory corruption, then it's still perfectly safe, just annoying.

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