Custom default exception handler?

Adam D. Ruppe destructionator at gmail.com
Tue Feb 11 18:41:01 PST 2014


On Wednesday, 12 February 2014 at 01:08:42 UTC, bearophile wrote:
> Is it possible to use a lazy argument there?

I think it depends on the task. To just wrap generic code though 
a delegate seems most straightforward.

> And isn't it better to catch Exception only?

Perhaps, or the specific FailException type or whatever.


More information about the Digitalmars-d-learn mailing list