[Issue 809] Should be possible to convert lazy argument to delegate

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 19 21:11:12 UTC 2019


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

--- Comment #7 from Stewart Gordon <smjg at iname.com> ---
(In reply to RazvanN from comment #6)
> I interpreted Walter's comment and replied as an extension to his first
> comment.

As I interpret Walter's comment, it's talking about Li's original idea, that
one should be able to use the bare name of the lazy parameter to mean the
delegate.  Then I suggested defining &dg to mean the delegate.  Really, the
essence of this issue is that it's suggesting definining a syntax to extract
the delegate from a lazy function parameter - which could be a language-defined
overload of the & (address-of) operator per comment 2, or it could be something
else entirely.

--


More information about the Digitalmars-d-bugs mailing list