On Monday, 25 April 2022 at 10:13:43 UTC, Alain De Vos wrote:
destructor of this code :

```d
 ~this(){
        writeln("Free heap");
        import object: destroy;
        import core.memory: GC;
        i=null;
// But How to force destroy and free , GC-cycle for heap object i ?
};
```

If you use destroy in destructor (~this), it will call destructor two times but thats not error.

SDB@79

Reply via email to