D needs emplacement new

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sat Apr 25 13:14:39 PDT 2015


  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.


More information about the Digitalmars-d mailing list