[Issue 5021] Associative array assigned to in spite of exception
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 12 01:26:16 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5021
Jonathan M Davis <jmdavisProg at gmx.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |major
--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-08-12 01:26:13 PDT ---
Okay. I just spent a few hours trying to track down a failure due to this, so
I'm bumping it up to major (what the exact criteria for what level a bug is, I
don't know, but this one is definitely annoying).
What seems to be happening here is that the associative array gets assigned a
default-initialized value if an exception was thrown from the expression on the
right-hand side of the assignment. My best guess is that a default-initialized
element is added to the AA as part of arr["hello"], and then when the
assignment doesn't happen due to the exception, the AA is left with the
default-initialized value in it.
--
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