[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:14:05 PDT 2014


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

--- Comment #6 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to monarchdodra from comment #5)
> Besides, how hard is it to just write: "catch(Throwbale)"

The general rule is: When there's a way to abuse the system, it /will/ be
abused.

The only reason why I found out about this feature is because it's used in the
dub project. I was surprised it even compiled, and doubly-surprised that it's
actually catching Throwables.

--


More information about the Digitalmars-d-bugs mailing list