Can't I allocate at descontructor?

Mike Parker aldacron at gmail.com
Fri Mar 5 09:23:29 UTC 2021


On Friday, 5 March 2021 at 05:31:38 UTC, Jack wrote:
> The following code returns a memory error. I did notice it did 
> happens whenever I did a memory allocation. Is this not 
> possible in the descontrutor? if so, why?

https://dlang.org/blog/2021/03/04/symphony-of-destruction-structs-classes-and-the-gc-part-one/


More information about the Digitalmars-d-learn mailing list