> I'm not understanding, are you saying that destructors and move semantics are > the resource management of Nim in the future? If so, what happens to the > tracing GC, regions, and all that? If not, I don't know which uniform > solution you are proposing.
Yes, that's what I am saying for the future -- and future here most likely means Nim version 2. How to do regions remains unclear but since assignments are under the programmer's control some overloaded assignment operators can enforce at runtime that no object mixes regions with incompatible lifetimes. The tracing GC could be replaced with atomic reference counting with a cycle collector. That's of course still a GC but one that plays as nice with deterministic destruction as possible.
