On Wednesday, 13 June 2018 at 07:11:56 UTC, Mike Franklin wrote:
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
Thanks, just what I was looking for.