Is "Out of Memory" a recoverable error?

Walter Bright newshound1 at
Fri Dec 5 15:05:49 PST 2008

Sean Kelly wrote:
> I disagree.  D is a systems app and so should not require termination on
> any error.  The distinction to me is that Errors require special handling
> if recovery is to be attempted, while it's often safe (if bad practice) to
> simply log Exceptions and soldier on.  That isn't to say that it's always
> possible (and certainly not always advisable) to recover from an Error,
> but I think that decision should be left up to the user.

If we go down that path, then nothrow functions can never allocate memory.

More information about the Digitalmars-d mailing list