GC-proof resource classes
rsw0x via Digitalmars-d
digitalmars-d at puremagic.com
Sun Aug 30 11:39:30 PDT 2015
On Sunday, 30 August 2015 at 18:21:17 UTC, Jim Hewes wrote:
> Regarding the garbage collector, if the destructor isn't
> guaranteed to be called, then I have to assume the worst case
> that it won't be called. That means I should not use
> destructors in these cases. It seems to me that should be
> enough argument.
I've made this argument before, nobody seemed that interested.
A perfectly standards compliant garbage collector could
completely ignore destructors.
More information about the Digitalmars-d
mailing list