Thought on limiting scope of GC

Francesco Cattoglio francesco.cattoglio at gmail.com
Fri Feb 14 03:34:38 PST 2014


On Friday, 14 February 2014 at 11:28:11 UTC, Jerry wrote:
> Track says keep track of objects allocated after the track 
> call, and
> cleanup only looks at those objects that were recently 
> allocated,
> ignoring the rest of the heap.

Track cannot make sure that no reference escapes, therefore 
cleaning up an object could be a huge error. This would however 
make sense e.g. inside pure functions.


More information about the Digitalmars-d mailing list