Please help with GC exception!

Kevin Cox kevincox.ca at gmail.com
Wed May 9 09:58:38 PDT 2012


On May 9, 2012 12:53 PM, "Gor Gyolchanyan" <gor.f.gyolchanyan at gmail.com>
wrote:
> Wouldn't it make more sense for GC to ignore second deallocation?
> If this was the case, data, which is know to become garbage would be
> deallocated right away.
> On the other hand, I might as well use std.c.stdlib.realloc for these
cases.

No, because then the GC could never give out that same location in memory
again.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20120509/a92e69d1/attachment.html>


More information about the Digitalmars-d mailing list