Freeing of memory (garbage collection)
Daniel White
twinbee42 at skytopia.com
Tue Dec 9 06:16:44 PST 2008
Thanks for that reply. I wonder if extending automatic garbage
collection for malloced memory would be a good idea...
> Only stuff like dynamic
> arrays, AAs and new'ed stuff gets cleaned up by the GC.
For the above types of allocating memory, is there a way to 'lock' a
variable and say to D, "don't free this memory until I allow you to",
and also for it to allow you to free it manually when/if need be?
More information about the Digitalmars-d-learn
mailing list