Re: Transient leaks
Posted: Fri Aug 07, 2009 10:57 am
by Robert >> Thu, 14 Jul 2005 3:35:39 GMT
Alan points out that it's perfectly valid for a transient object to live it's life with no references, e.g. an object that is responsible for it's own demise. How does AGC know not to clean up?
This implies that the developer must be able to determine whether auto-delete is applied, which in turn implies:
1. "transparent and retrofittable" can't be achieved
2. a language extension is required
N'est pas?
To correctly implement garbage collection Jade would have to hold a reference count on objects.
Alan points out that it's perfectly valid for a transient object to live it's life with no references, e.g. an object that is responsible for it's own demise. How does AGC know not to clean up?
This implies that the developer must be able to determine whether auto-delete is applied, which in turn implies:
1. "transparent and retrofittable" can't be achieved
2. a language extension is required
N'est pas?