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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 12 06:47:57 UTC 2017


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

--- Comment #5 from Maksim Fomin <mxfm at protonmail.com> ---
(In reply to Shachar Shemesh from comment #3)
> (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.

I meant rewriting in another syntax explicitly.

--


More information about the Digitalmars-d-bugs mailing list