struct destructor

Alain De Vos devosalain at ymail.com
Sat May 15 16:55:48 UTC 2021


On Saturday, 15 May 2021 at 16:53:04 UTC, Adam D. Ruppe wrote:
> 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.

Can I send a kind message to the garbage collector to please free 
that speficic memory at that time specified ?


More information about the Digitalmars-d-learn mailing list