is it safe to call `GC.removeRange` in dtor?

rsw0x via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 30 12:09:26 PDT 2015


On Saturday, 27 June 2015 at 21:53:33 UTC, ketmar wrote:
> is it safe to call `GC.removeRange` in dtor? i believe it 
> should be safe, so one can perform various cleanups, but 
> documentation says nothing about guarantees

It's not documented. Afaik parts of the standard library depend 
on this behavior so I'd say "ok*" where the asterisk means submit 
a specification update.


More information about the Digitalmars-d-learn mailing list