Rant of the day

Steven Schveighoffer schveiguy at gmail.com
Tue Jan 26 15:16:01 UTC 2021


On 1/25/21 9:55 PM, rikki cattermole wrote:

> Note: you did not need to call GC.free. The destroy would have 
> guaranteed unmapping internally. GC.free would only remove the class 
> instance memory itself.

This. GC is for memory cleanup, but not necessary to cleanup resources.

If you are calling GC.free in your code, likely you are doing something 
wrong.

-Steve


More information about the Digitalmars-d mailing list