[Issue 12558] try/catch allows implicit catching of Throwables without specifying any Exception type
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Apr 21 13:11:45 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12558
monarchdodra at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |monarchdodra at gmail.com
--- Comment #5 from monarchdodra at gmail.com ---
"catch" should only be catching exceptions, for the same reason that "nothrow"
only makes promises about exceptions.
Errors (or more generally Throwables) are NOT the standard, and should always
be dealt with explicitly.
Besides, how hard is it to just write: "catch(Throwbale)"
--
More information about the Digitalmars-d-bugs
mailing list