Why would an initialised struct pointer field be null in the struct's destructor?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 21 17:23:26 PDT 2017


On Sunday, 21 May 2017 at 14:13:20 UTC, Stanislav Blinov wrote:
> Not if you either emplace() or blit Foo.init into all of the 
> array elements.

You especially need to be safe calling ~this on Foo.init.


More information about the Digitalmars-d-learn mailing list