Is this ok in D?
class MyClass
{
OtherClass a;
this() {
a = new OtherClass;
}
~this() {
delete a;
}
}
I was just trying to fix the crash on exit in the tinyXPath code on
dsource, and it does the above a lot.
--bb