Safe method wont check dangling pointer?

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 02:33:18 PDT 2014


Walter Bright:

> Valgrind is an incredibly useful tool, but programs run 
> terribly slowly under it.

On the other hand the C/C++ world in the last years has seen
numerous advancements that D should keep an eye on. If you look
at the latest versions of LLVM-Clang and GCC you see various
"sanitizers" (available as built-in tools of the compiler) that
don't use too much memory, don't slow down your code too much,
and catch dangling or wrong pointers, integer overflows,
past-by-one errors, and more. One of those tools is less needed
by D (thanks to the good management of the array bounds), but the
others are nice.

Bye,
bearophile


More information about the Digitalmars-d mailing list