question about the garbage collector
Jarrett Billingsley
kb3ctd2 at yahoo.com
Sun Mar 4 09:08:30 PST 2007
"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.
More information about the Digitalmars-d-learn
mailing list