A Philosophy of Software Design
Mindy (0xEAB)
desisma at heidel.beer
Sat Jul 25 01:46:04 UTC 2026
On Saturday, 4 July 2026 at 00:53:13 UTC, Walter Bright wrote:
> Relying on DFA to catch null and nan values will only catch a
> very small number of cases. It is nice to catch them, but it is
> not a sufficient substitute for robust dealing with errors.
>
> BTW, dmd's optimizer will catch:
>
> ```d
> int* p = null;
> *p = 3;
> ```
LLVM's optimizer:
*performs auto vectorization*
DMD's optimizer:
"So, this is a null dereference. Let's optimize this program by
preventing compilation!"
/just kidding
More information about the Digitalmars-d
mailing list