question about the garbage collector

doob doobnet at gmail.com
Sun Mar 4 12:11:11 PST 2007


Jarrett Billingsley Wrote:

> "Sean Kelly" <sean at f4.ca> wrote in message 
> news:esesnv$di1$1 at digitalmars.com...
> 
> > 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.
> 
> You can also do it for regular Windows programs (i.e. in your WinMain), but 
> in that case you can also just use the standard D "int/void main()" and use 
> some Windows API functions to get the values which are usually passed as 
> parameters to WinMain.  This way you don't have to do the D initialization 
> crap; D will handle that for you. 
> 
> 

So you're saying that if I want to create a regular windows program I don't need to initialize the garbage collector because it will do that by default and it will handle the C stuff also? 


More information about the Digitalmars-d-learn mailing list