On Thursday, 12 February 2015 at 04:18:06 UTC, Adam D. Ruppe
wrote:
On Thursday, 12 February 2015 at 04:08:23 UTC, Jakob Ovrum
wrote:
Is it possible to call the destructor or postblit constructor
directly
yes, they are available as obj.__dtor() and obj.__postblit();
But...
and will they correctly destruct/copy recursively
No.
Thanks.
So you'd have to loop through all members in a custom destroy
function and call them yourself. Then attribute inference
should work.
I feared as much. I'll cook something up and send a PR for review.