[Issue 7018] synchronized + assert == evil results

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 26 22:09:27 PST 2011


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



--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> 2011-11-26 22:08:27 PST ---
(In reply to comment #2)
> There's no case in which synchronized { assert } is valid.

There is because assert is for checking for logic errors, and then it is
supposed to abort the program. It is not expected to clean up finally blocks,
release mutexes, etc.

AssertExp *is* nothrow.

If there are bugs in the druntime tests, those need to be identified and
submitted.

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