Rosettacode: program termination

Andrea Fontana nospam at example.com
Tue Apr 15 02:41:56 PDT 2014


On Tuesday, 15 April 2014 at 09:30:21 UTC, bearophile wrote:
> Andrea Fontana:
>
>> What about:
>>
>> static ~this() { "asdasdasd".writeln; }
>
> I have added it.
>
> Bye,
> bearophile

http://dpaste.dzfl.pl/33cb0a05f0ff

Static destructor is called!

Application output:
spam at exit
bar at exit
foo at exit
Never called


More information about the Digitalmars-d-learn mailing list