question about the garbage collector

Sean Kelly sean at f4.ca
Sun Mar 4 08:39:20 PST 2007


doob wrote:
> I have a small question. I've just started to use D and I've been looking at this example:
> 
> http://www.digitalmars.com/d/windows.html
> 
> I see in the example that it initializes the garbage collector using this function:
> gc_init();
> 
> My question is then: is this just for D stuff or is it also for the C stuff?

You only need to do this if you're creating a D dynamic library, because 
in that case the default startup process is not executed and the GC is 
therefore not initialized.


Sean


More information about the Digitalmars-d-learn mailing list