question about the garbage collector
Sean Kelly
sean at f4.ca
Sun Mar 4 16:21:38 PST 2007
doob wrote:
> 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?
If you want to write a normal D program for Windows then you don't need
to do anything special. What do you mean by C stuff?
More information about the Digitalmars-d-learn
mailing list