On 8 March 2018 at 14:56, Henrik via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > > It all works good, but why do I have to put the @nogc on the constructor and > destructor separately?
@nogc in the global scope does not propagate inside the class (this could lead to serious problems). You can use `@nogc:` at the top of your class to make all class contents @nogc too.