How to add nogc to delegate

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 10 22:12:39 PDT 2016


On 08/11/2016 06:15 AM, Engine Machine wrote:
> void foo(@nogc void delegate())
>
> doesn't work.

Put it after the parameter list, like so:

void foo(void delegate() @nogc)


More information about the Digitalmars-d-learn mailing list