[Issue 12558] try/catch allows implicit catching of Throwables without specifying any Exception type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 12 08:37:29 PDT 2014


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

--- Comment #3 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
(In reply to yebblies from comment #2)
> I dunno, catching asserts like that is useful.  Why shouldn't the default be
> to catch absolutely everything?

Because you're potentially drowning a serious error and it's really hard to
spot this in the code. 

But we already have library workarounds for exactly this purpose, e.g.
collectException!Throwable( your_stuff_here );

--


More information about the Digitalmars-d-bugs mailing list