A Philosophy of Software Design
Walter Bright
newshound2 at digitalmars.com
Mon May 25 17:26:59 UTC 2026
I forgot to mention - an out of memory error is nearly always a fatal error for
a program. There's no reason one couldn't, when failing to enlarge the string
buffer:
```
char* buffer = cast(char*)malloc(newsize);
if (!buffer)
fatal_error("string too big for memory!");
```
And another problem with exceptions are the "double fault" ones, where an
exception is thrown from within an exception. That's a fatal error.
More information about the Digitalmars-d
mailing list