On Wednesday, 13 May 2015 at 11:24:10 UTC, Kagamin wrote:
On Tuesday, 12 May 2015 at 12:53:59 UTC, ponce wrote:
I already have such a dispose() function.
The problem is that to support Unique! and scoped! and
friends, the destructor must call dispose(). Thus my need for
a way to separate the GC-induced destructors within dispose()
or ~this (same problem).
Maybe it's simpler to copy-paste Unique and scoped and modify
them to handle disposable objects?
But then we would need a standardized name (some use "close",
some use "dispose", some use "release")
The closest thing we have to a standardized function name is the
destructor.