what are the most common bugs in your D apps?

Jarrett Billingsley jarrett.billingsley at gmail.com
Mon Apr 6 05:29:25 PDT 2009


On Mon, Apr 6, 2009 at 2:33 AM, bearophile <bearophileHUGS at lycos.com> wrote:
> Robert Fraser Wrote:
>> I'm assuming overflow<
>
> Which could be 95% solved by buffer overflow checks :-)
> My ears are ringing.

For what it's worth, mine aren't.  I have never had a bug due to
integer overflow.  No, I take that back - I have had bugs relating to
integer overflow, but they were exclusively limited to things like:

for(uint i = len; i >= 0; i--)
    ....

That is, signed/unsigned comparisons.  This is the only time I've ever
had such problems.



More information about the Digitalmars-d mailing list