Rosettacode: program termination

bearophile bearophileHUGS at lycos.com
Tue Apr 15 02:48:56 PDT 2014


Andrea Fontana:

> http://dpaste.dzfl.pl/33cb0a05f0ff
>
> Static destructor is called!
>
> Application output:
> spam at exit
> bar at exit
> foo at exit
> Never called

Well, we have a little mystery here :-) Using both the latest 
beta of ldc2 and the latest alpha of dmd, on Windows32 I don't 
see "Never called" called :-) Perhaps this incongruence is 
another little compiler bug? :-)

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list