Safe method wont check dangling pointer?
Paulo Pinto via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 15 03:28:34 PDT 2014
On Tuesday, 15 April 2014 at 09:33:19 UTC, bearophile wrote:
> 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
Except, as far as I am aware, they only work on GNU/Linux and Mac
OS X, leaving out all other operating systems out there.
--
Paulo
More information about the Digitalmars-d
mailing list