http://d.puremagic.com/issues/show_bug.cgi?id=11348
Summary: Introduce assumeWontThrow for use with nothrow
functions
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: pull
Severity: enhancement
Priority: P2
Component: Phobos
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Andrej Mitrovic <[email protected]> 2013-10-24
14:35:54 PDT ---
The assumeWontThrow function is useful in contexts where a nothrow function
might want to call some piece of code which is /not/ marked as nothrow even
though it doesn't necessarily throw.
If the called function does throw, assumeWontThrow will promote the exception
into an AssertError, which is an Error derivative and thus allows to be thrown
from nothrow functions.
https://github.com/D-Programming-Language/phobos/pull/1571
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------