Uh... destructors?

Simen Kjaeraas simen.kjaras at gmail.com
Tue Feb 22 05:36:29 PST 2011


%u Wrote:
> Well, the trouble is, pretty much all of these are invalid attributes:

> - static obviously makes no sense

And here is where you're wrong. You have defined a static destructor, which is called with module destructor as the program goes out of scope, rather than when your struct or class is destroyed.


More information about the Digitalmars-d mailing list