@nogc for structs, blocks or modules?

WebFreak001 via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 15 18:47:38 PST 2016


On Tuesday, 16 February 2016 at 02:42:06 UTC, maik klein wrote:
> I just seems very annoying to add @nogc to every function.

you can mark everything as nogc with

// gc functions here

@nogc:

// nogc functions here
void foo() {}


More information about the Digitalmars-d mailing list