Rosettacode: program termination
bearophile
bearophileHUGS at lycos.com
Tue Apr 15 03:08:02 PDT 2014
Andrea Fontana:
> I think so. On dpaste using 2.063.2 or git version that
> function isn't called. Only on 2.065..
The C exit() function is not required to honour D module
destructors.
> More:
> import std.stdio;
> "Never called".writeln;
>
> This doens't work on git version (only in 2.065). I think it is
> a known behaviour about "local" import + ufcs. Why does it work
> on 2.065?
This code should work (because the imported names are not locally
defined), and it correctly works with the latest dmd alpha :-)
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list