@nogc and lazy arguments
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 27 06:45:13 PDT 2014
Dicebot:
> It happens because attribute inference does not work properly
> on generated delegated for lazy argument. I think it is a bug
>
> "lazy int x" is effectively same as "int delegate() x" and
> @nogc states that you can only call other @nogc functions and
> delegates from something annotated as @nogc.
https://issues.dlang.org/show_bug.cgi?id=12664
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list