Is "Out of Memory" a recoverable error?

Walter Bright newshound1 at digitalmars.com
Fri Dec 5 15:06:24 PST 2008


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!!!



More information about the Digitalmars-d mailing list