why scope(success)?
Walter Bright
newshound at digitalmars.com
Sat May 13 12:44:50 PDT 2006
Walter Bright wrote:
> This doesn't work because when the scope is done, no matter how it ends,
> A, B and C are *all* rolled back.
Eh, I misinterpreted Mike's code. Sorry.
But the uncaught_exception doesn't do the job. It only gets invoked if
some exception is uncaught anywhere on the call stack, not if it is just
uncaught before the destructors are called.
More information about the Digitalmars-d
mailing list