Custom default exception handler?

bearophile bearophileHUGS at lycos.com
Tue Feb 11 17:08:41 PST 2014


Adam D. Ruppe:

> int handleError(void delegate() dg) {
>         try dg();
>         catch(Throwable t) return 1;

Is it possible to use a lazy argument there? And isn't it better 
to catch Exception only?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list