Vtable for virtual functions in D

Manu turkeyman at gmail.com
Fri Mar 9 18:48:51 UTC 2018


On 8 March 2018 at 14:56, Henrik via Digitalmars-d
<digitalmars-d at 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.


More information about the Digitalmars-d mailing list