Null references redux

bearophile bearophileHUGS at lycos.com
Sat Sep 26 20:19:14 PDT 2009


Walter Bright:

> The only time I've had a 
> problem finding where a null came from (because they tend to fail very 
> close to their initialization point) is when the null was caused by 
> another memory corruption problem. Non-nullable references won't 
> mitigate that.

There are some ways to reduce the number/probability of memory corruptions too in a C-like language. Memory regions, region analysis, etc. We can discuss about this too, but this is another topic.

Bye,
bearophile



More information about the Digitalmars-d mailing list