forcing "@nogc" on class destructors

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 27 21:19:16 PST 2015


On 1/27/15 7:00 PM, Jerry Morrison wrote:
> A solution to that would be to never call invariants during a collection
> cycle, but what other gotcha's exist during collection? Would @nogc on
> class destructors help them?

I, too, think no invariants should be called during GC-triggered 
destruction.

Andrei

P.S. Good to see you around here, Jerry!


More information about the Digitalmars-d mailing list