Address of a lambda

FoxyBrown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 7 10:58:51 PDT 2017


On Friday, 7 July 2017 at 17:52:25 UTC, Ali Çehreli wrote:
> On 07/07/2017 10:33 AM, FoxyBrown wrote:
> > [...]
> the methods
> > [...]
>
> I'm not a user but I don't think it's right. According to the 
> following, it takes a delegate:
>
> [...]

Thanks, I guess one doesn't need to pass the address(I copied the 
code from somewhere and it was so I made an assumption).

One doesn't need the delegate keyword or &, but the question then 
is why does & work? Seems to have done not affect the behavior.




More information about the Digitalmars-d-learn mailing list