destructor ~this() for static "members." doesn't seem to get called

Sclytrack Sclytrack at pi.be
Mon Feb 19 00:46:52 PST 2007


> > The destructor of testb doesn't get called,
> > before the termination of the application,
> > or that is at least my perception.
> >
> OK, is this supposed to be 'automatic' by the D language definition or a
> responsibility of the programmer of including an explicit call to testb
> destructor in the testy one?

It is just that I didn't expect this behavior, anyways, it seems
that mcs, C# displays the same behavior. I guess I'll have no choice
but to make the call explicit.

Go go D :-)


More information about the D.gnu mailing list