what are the most common bugs in your D apps?

Christopher Wright dhasenan at gmail.com
Mon Apr 6 08:15:07 PDT 2009


Jason House wrote:
> Jarrett Billingsley Wrote:
> 
>> On Mon, Apr 6, 2009 at 2:24 AM, Robert Fraser
>> <fraserofthenight at gmail.com> wrote:
>>> davidl wrote:
>>>> Actually I'm not sure about what kind of bugs my d apps usually have. But
>>>> I notice that the harmonia project(I now make it uptodate) gets the problem
>>>> of integer overlapping(actually I find it quite hard to detect and fix).
>>>>
>>>> What's your opinion and experience?
>>> Null references/segfaults. Which could be 90% solved by non-nullable types.
>> Same here.
> 
> I've had plenty of those recently. The argument that they're easy to track down is a myth. On linux, the cause the program to core dump and gdb support has been broken all year... It's even more fun when it takes 10 minutes of execution to reproduce it.

I mainly encounter them when using C bindings. Then I just add a bunch 
of contracts everywhere I use a pointer retrieved from a C function.



More information about the Digitalmars-d mailing list