On Saturday, 24 October 2020 at 09:02:41 UTC, frame wrote: > Yeah, I understand but this doesn't help if resources are wiped > when the object gets destroyed too. Correct design solves your problem. If you rely exclusively on GC for resource management, this scenario is not supported, because it's unworkable.