struct destructor

Adam D. Ruppe destructionator at gmail.com
Sat May 15 16:53:04 UTC 2021


On Saturday, 15 May 2021 at 16:52:10 UTC, Alain De Vos wrote:
>
> When I do a "new" in a struct constructor to assign to a member 
> variable of this struct, what do i write in the same struct 
> destructor to free the memory ?

If you used `new` the garbage collector is responsible for it.


More information about the Digitalmars-d-learn mailing list