Null references (oh no, not again!)

Walter Bright newshound1 at digitalmars.com
Tue Mar 3 21:53:11 PST 2009


Daniel Keep wrote:
>> * Accessing arrays out-of-bounds
>> * Dereferencing null pointers
>> * Integer overflow
>> * Accessing uninitialized variables
>>
>> 50% of the bugs in Unreal can be traced to these problems!
> 
> Tim Sweeny isn't an amateur; he's responsible, at least in part, for one
> of the most commercially successful game engines ever.  I figure if even
> he has trouble with these things, it's worth trying to fix them.
> 
> Note that D already solves #1 and #4, LDC could give us #3... that just
> leaves #2.  :D

1 and 4 are pernicious, memory corrupting, hard to find problems. 2 is 
easy to find, does not corrupt memory. It isn't even in the same 
continent as 1 and 4 are.

3 is a problem, but fortunately it tends to be rare.



More information about the Digitalmars-d mailing list