dereferencing null

Walter Bright newshound2 at digitalmars.com
Sat Mar 3 11:06:52 PST 2012


On 3/3/2012 2:13 AM, bearophile wrote:
> Walter:
>
>> Adding in software checks for null pointers will dramatically slow things
>> down.
>
> Define this use of "dramatically" in a more quantitative and objective way,
> please. Is Java "dramatically" slower than C++/D here?

You can try it for yourself. Take some OOP code of yours, and insert a null 
check in front of every dereference of the class handle.


More information about the Digitalmars-d mailing list