2 ms·
Well for one the code might be running in kernel space, so a null pointer access could very well be fatal. There are also use cases that D supports (e.g. certai
by AlotOfReading 4y ago
Well for one the code might be running in kernel space, so a null pointer access could very well be fatal. There are also use cases that D supports (e.g. certain bare metal arm targets) where the all-bits-zero pointer is validly addressable and contains Important Stuff.
Those protections are there as last ditch safety measures. You shouldn't rely on them .
- verdagon 4y agoReasonable answers, thank you! I wonder how D might address that.