How to free memory ater use of "new" to allocate it.
    drug007 
    drug2004 at bk.ru
       
    Mon Jul 17 12:57:26 UTC 2023
    
    
  
17.07.2023 15:45, Alain De Vos пишет:
> This works also:
> 
> [snipped]
> 
> 
Despite this time you use new you still allocate your class on stack 
using scope and its scope still is `dofun`. But I just want to inform 
you. Your solutions work. Don't get me wrong.
N.B. I would say if you do not have THE reason to manually free memory - 
do not do this. At all. Just let GC does its work.
    
    
More information about the Digitalmars-d-learn
mailing list