Trailing catch on function?
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Mon Nov 7 17:50:26 PST 2016
On 11/7/2016 4:12 PM, Robert burner Schadek wrote:
> On Monday, 7 November 2016 at 23:37:18 UTC, Walter Bright wrote:
>> void callback() nothrow
>> {
>> scope (failure)
>> {
>> ...log error or abort...
>> }
>> ...lots of code...
>> }
>
> Who to get the Exception thrown in the scope(failure)
You don't. The exception is also rethrown, so it isn't an exact replacement.
(The 'nothrow' is a mistake on my part.)
More information about the Digitalmars-d
mailing list