a short null dereference story

Basile B. b2.temp at gmx.com
Fri Dec 5 20:58:32 UTC 2025


Just wake up this morning with the idea to run my test suite with 
an optimized compiler. Turn out that it was impossible to compile 
the optimized version of the compiler. That gave me

> src/styx/ast/visitor.sx:137:18: runtime error, member read with 
> null `this`

bounds checks are nice but when you are still with dealing 
objects allocated on the heap that kind of verification help a 
lot.

So for D the equivalent would be to generate a check on each 
DotVarExp.

Have a nice week-end.

Baz.




More information about the Digitalmars-d mailing list