Is "Out of Memory" a recoverable error?
KennyTM~
kennytm at gmail.com
Thu Dec 4 02:43:23 PST 2008
Robert Fraser wrote:
> Robert Jacques wrote:
>> 2) One can still catch an error if need be.
>
> Not if the function is nothrow, since the function never sets up an
> exception handling frame (that's the point of this topic, AFAICT).
Make a non-recoverable version as standard, and a recoverable version
that throws an Exception/return null as a last-resort if you really want
to handle the mess (free other memories).
More information about the Digitalmars-d
mailing list