How to add nogc to delegate
Gary Willoughby via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Aug 11 06:47:10 PDT 2016
On Thursday, 11 August 2016 at 05:12:39 UTC, ag0aep6g wrote:
> 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)
You may also need to add the scope keyword too.
Reference:
http://forum.dlang.org/thread/zaxaqgeeenwypmijrfdl@forum.dlang.org
More information about the Digitalmars-d-learn
mailing list