3 ms·
Not directly to syntax, but D null pointer safety is weird IMO. It checks array access bounds, but segfaults for null pointers. Seems an odd choice, and there
by paulddraper 3y ago
Not directly to syntax, but D null pointer safety is weird IMO.
It checks array access bounds, but segfaults for null pointers. Seems an odd choice, and there are multiple discussions of people saying the same.
- WalterBright 3y agoNull pointers are automatically checked by the hardware (seg fault). Adding another runtime check is redundant. Yes, I know, adding a huge fixed offset to the pointer can push it past the null protected pages.