Destructor called while object is still alive

Kagamin spam at here.lot
Sat Oct 24 06:35:00 UTC 2020


On Friday, 23 October 2020 at 19:23:03 UTC, frame wrote:
> So how can I avoid this issue with DMD? Disabling any 
> optimization?

You avoid it by correctly designing your code. Resource 
management with class destructors is incorrect design.


More information about the Digitalmars-d mailing list