[Issue 18058] @nogc and forwarding lazy argument, particularly with scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 02:31:01 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=18058

--- Comment #3 from Shachar Shemesh <shachar at weka.io> ---
(In reply to Maksim Fomin from comment #1)
> > The second problem is that the lowering is overly complicated. Instead
> > of lowering to:
> 
> Again, currently compiler behaves according to the spec (in my
> understanding). If you prefer option 1 you can write it explicitly.

No, I cannot. "lazy" and "delegate" behave the same only internally. As far as
syntax goes, I cannot get the delegate that a lazy has turned into, nor can I
can pass a delegate where a function expects a lazy argument.

--


More information about the Digitalmars-d-bugs mailing list