On Saturday, 25 April 2015 at 19:08:52 UTC, weaselcat wrote:
doesn't this have the issue of not calling the ctor/dtor of nested objects?

You could also use .destroy(copy_of_obj); instead of __dtor which should handle that, I think.

Constructors are fine because there's no default construction in D anyway - the object's this() would be calling them anyway.

Reply via email to