[Issue 12645] assertThrown!Error and assertNotThrown!Error should be nothrow

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 25 08:35:52 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12645

monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from monarchdodra at gmail.com ---
(In reply to Kenji Hara from comment #4)
> (In reply to monarchdodra from comment #3)
> > (In reply to Kenji Hara from comment #2)
> > > This is a possible enhancement, blocked by issue 12647.
> > 
> > 12647 was made invalid. assertNotThrown!Error Really has no reason to be
> > nothrow, since it can legally throw exceptions.
> 
> I agree with that the issue 12646 is invalid, but the newly filed issue
> 12647 is different thing.

Ah right. I didn't realize the inference was wrong. I thought we were just
asking for "always" nothrow.

--


More information about the Digitalmars-d-bugs mailing list