The GC, destructors, exceptions and memory corruption
Alexander
aldem+dmars at nk7.net
Fri May 13 07:14:03 PDT 2011
On 13.05.2011 15:47, Don wrote:
> Yeah. It's pretty hard to come up with a use case for a finalizer.
Why? If object holds some external resource, which needs to be released (like file handle) - that makes perfect use case, IMHO.
It *could* happen that explicit release didn't happen, that's why finalizer should do this.
/Alexander
More information about the Digitalmars-d
mailing list