digitalmars.D.learn - How to add nogc to delegate
- Engine Machine (4/4) Aug 10 2016 void foo(@nogc void delegate())
- ag0aep6g (3/5) Aug 10 2016 Put it after the parameter list, like so:
- Gary Willoughby (4/10) Aug 11 2016 You may also need to add the scope keyword too.
void foo( nogc void delegate()) doesn't work. But declaring an alias does, but too verbose. Surely we should be able to add the attribute directly?
Aug 10 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)
Aug 10 2016
On Thursday, 11 August 2016 at 05:12:39 UTC, ag0aep6g wrote:On 08/11/2016 06:15 AM, Engine Machine wrote:You may also need to add the scope keyword too. Reference: http://forum.dlang.org/thread/zaxaqgeeenwypmijrfdl forum.dlang.orgvoid foo( nogc void delegate()) doesn't work.Put it after the parameter list, like so: void foo(void delegate() nogc)
Aug 11 2016