A question about the GC

Jarrod qwerty at ytre.wq
Sun Dec 23 20:39:54 PST 2007


On Sun, 23 Dec 2007 20:27:59 -0800, Kirk McDonald wrote:
 
> It is a non-moving GC. Also, the D GC won't see any pointers held by the
> C library, so be sure that you keep references to your GC-controlled
> classes in your D code, where the GC can see them.

Yes, I use gc.addRoot with the class address before I pass it on..

Anyway, thanks a lot for your quick answer! I hope the GC remains non-
moving, it becomes a lot more confusing otherwise.


More information about the Digitalmars-d-learn mailing list