Christopher Wright wrote:
Walter Bright wrote:
nothrow void foo();

void bar()
{
    try
    {
    foo();
    }
    finally
    {
        will_never_execute(); // even if foo() throws
    }
}

because the compiler will optimize away the finally clause.

! ! !

Surely you mean "catch" rather than "finally"?

Yes. Oops!!!

Reply via email to