On Tuesday, 27 March 2018 at 23:23:10 UTC, Timothee Cour wrote:
This is deterministic destruction and not RAII. Resource is never *acquired* here. Lack of default constructors for struct in D makes it impossible to achieve the RAII as in C++.
So what else is missing for D to achieve RAII as in C++ ?And is deterministic destruction only available for structs, what about classes