null and type safety

Walter Bright newshound1 at digitalmars.com
Tue Nov 4 12:32:59 PST 2008


Brendan Miller wrote:
> This is obviously a problem. Everyone knows that null pointer
> exceptions in Java/C#, or segmentation faults in C and C++ are one of
> the biggest sources of runtime errors.

Yes, but those are neither type safe errors or memory safe errors. A 
null pointer is neither mistyped nor can it cause memory corruption.



More information about the Digitalmars-d mailing list