implicit or module-wide @nogc
Mike Franklin
slavo5150 at yahoo.com
Wed Jun 13 07:11:56 UTC 2018
On Wednesday, 13 June 2018 at 06:45:27 UTC, Gokhhy wrote:
> Is there a way to define an entire module as @nogc or otherwise
> make it so I don't have to qualify every single function as
> @nogc?
You can put attributes at the top of a module followed by a ":"
to have them apply to everything below them.
module mymodule;
@nogc:
void nogcFunction1() { }
void nogcFunction2() { }
Mike
More information about the Digitalmars-d-learn
mailing list