Classes on stack

rikki cattermole rikki at cattermole.co.nz
Thu Sep 1 11:33:40 UTC 2022


On 01/09/2022 11:25 PM, Redwan wrote:
> so with this state, how can I found memory leak in my program?

Most people don't bother beyond valgrind in D.

Either its on the stack, GC allocated or reference counted for most 
people in D.

These three strategies pretty much guarantee no leaks (reference 
counting does have some pitfalls relating to data structures but we can 
safely ignore that here).


More information about the Digitalmars-d mailing list