June 22, 2016 Re: Is there anyway to make opApply @nogc? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marc Schütz | On Wednesday, 22 June 2016 at 13:36:54 UTC, Marc Schütz wrote:
> On Tuesday, 21 June 2016 at 19:21:01 UTC, Gary Willoughby wrote:
>> Right ok, thanks! It doesn't seem to help though as the compiler complains about it being not @nogc.
>
> You probably need to declare the delegate and opApply() itself as @nogc, too:
>
> int opApply(scope int delegate(int) @nogc dg) @nogc { }
That fixed it, thanks all for your help. :)
|
Copyright © 1999-2021 by the D Language Foundation