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

2015-07-01 Thread ketmar via Digitalmars-d-learn
thank you both. then i think that it should be explicitly stated in core.memory.

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

2015-06-30 Thread rsw0x via Digitalmars-d-learn
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

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

2015-06-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 6/27/15 5:53 PM, 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. Hm... I can't see any reason why it wouldn't be allowed. removeRange shouldn't alloc

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

2015-06-27 Thread ketmar via Digitalmars-d-learn
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. signature.asc Description: PGP signature