Scope failure is not preventing application crush in case of uncaught exceptions

kerdemdemir kerdemdemir at gmail.com
Sat Dec 16 21:22:47 UTC 2017


On Saturday, 16 December 2017 at 20:56:26 UTC, ketmar wrote:
> kerdemdemir wrote:
>
>> As far as I know scope(failure) should be collecting all 
>> failure cases.
>
> nope. `failure` scope won't stop exception propagation, it is 
> just called before exception leaves your function, to give you 
> a last chance to do some immediate cleanup.

Than do I still need to catch'em all? For me it doesn't matter 
the which exception it is. It is more important for me to not 
pollute my code with so many exception related lines. What is the 
most compact way for me to catch'em all?


More information about the Digitalmars-d-learn mailing list