Trailing catch on function?

Robert burner Schadek via Digitalmars-d digitalmars-d at puremagic.com
Tue Nov 8 02:30:44 PST 2016


On Tuesday, 8 November 2016 at 01:50:26 UTC, Walter Bright wrote:
> You don't. The exception is also rethrown, so it isn't an exact 
> replacement. (The 'nothrow' is a mistake on my part.)

this:

scope(failure, Exception e) {
     // Do something with e
}

would be nice




More information about the Digitalmars-d mailing list