Lazy evaluation and @nogc code
Basile B. via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jun 3 07:45:45 PDT 2017
On Saturday, 3 June 2017 at 14:34:41 UTC, Nick Vitsas wrote:
> In any case, do you think that `scope` should allow for such
> code to compile? Since you can get the desired result using the
> verbose version, I think you should also be able to using the
> `lazy` construct.
I think so. There's even a pull request that modifies lazy so
that other functions attributes (incl. @nogc) are inferred.
https://github.com/dlang/dmd/pull/6348
The problem is that it seems to be out of scope / interest now
(last activity was on 24 of Feb), almost 6 months.
More information about the Digitalmars-d-learn
mailing list