Noob question about structs allocation

Laurent Tréguier laurent.treguier.sink at gmail.com
Mon Oct 15 07:26:37 UTC 2018


On Monday, 15 October 2018 at 04:14:24 UTC, IM wrote:
> What is the effect of calling destroy?
> - calling the destructor?
> - deallocating the memory?
> - both?

IIRC, it only calls the destructor, the GC will decide when to 
deallocate the memory.


More information about the Digitalmars-d-learn mailing list