Safe method wont check dangling pointer?

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 15 10:06:02 PDT 2014


On 4/15/2014 6:55 AM, "Marc Schütz" <schuetzm at gmx.net>" wrote:
> I think the reason is that it returns `void*` (needs a cast and has no length)
> and points to uninitialized memory, not because you need to free it manually.

Yes.

> A memory leak is still memory safe.

True, which is why we can guarantee memory safety with a GC.



More information about the Digitalmars-d mailing list