scope guards
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 4 07:13:22 PDT 2014
On Monday, 4 August 2014 at 10:01:42 UTC, Manu via Digitalmars-d
wrote:
> catch can't appear on its own though... or are you suggesting
> that it
> should be possible?
Yes, that's what I'm suggesting.
> Yeah, that. Except I think scope(failure, Exception e) also has
> a place;
> there are instances where you don't want to stop the unwind,
> but you do
> want to be able to retrieve some information from the exception
> during the
> unwind... useful for error recording or context sensitive
> recovery.
Then rethrow the exception.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list