About RAII and GC...?

Sean Kelly sean at f4.ca
Mon Jul 30 23:38:09 PDT 2007


Jarrett Billingsley wrote:
> 
> Although I wonder how much the GC could be helped by means of a new kind of 
> object lifetime control, where the lifetime of one object is controlled by 
> the lifetime of another.  Collecting the "parent" object would cause the 
> "child" object to be collected, and the child couldn't be collectable until 
> the parent object was. 

I think Walter intends to use "scope" for that.  ie.

class C {}
class D { scope C c; }


Sean



More information about the Digitalmars-d mailing list