dereferencing null

Walter Bright newshound2 at digitalmars.com
Fri Mar 2 18:51:39 PST 2012


On 3/1/2012 8:51 PM, Jonathan M Davis wrote:
> It's defined. The operating system protects you.

Not exactly. It's a feature of the hardware. You get this for free, and your 
code runs at full speed.

Adding in software checks for null pointers will dramatically slow things down.


More information about the Digitalmars-d mailing list