opImplicitCast/opImplicitCastFrom

Bruno Medeiros brunodomedeiros+spam at com.gmail
Tue Nov 4 05:46:26 PST 2008


Andrei Alexandrescu wrote:
> Jarrett Billingsley wrote:
>> On Tue, Oct 28, 2008 at 7:21 AM, bearophile <bearophileHUGS at lycos.com> 
>> wrote:
>>> This document from experience says that integral overflow bugs are a 
>>> significant percentage of the total:
>>> http://www.st.cs.uni-sb.de/edu/seminare/2005/advanced-fp/docs/sweeny.pdf
>>
>> No, it says array-out-of-bounds errors, dereferencing null pointers,
>> accessing uninitialized variables _and_ integer overflows together
>> represent 50% of the bugs.  I don't know about you but I run into
>> those first three cases (well.. two, since there aren't uninitialized
>> variables in D) waaaaay more than I do integer overflows.
> 
> I think the frequency of a bug should be multiplied with the trouble it 
> takes to fix it. Frequency alone isn't terribly relevant.
> 
> Andrei

Indeed!

-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list