Function names and lambdas

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Apr 6 11:45:14 PDT 2017


On Thursday, 6 April 2017 at 18:37:51 UTC, Russel Winder wrote:
> I am used to a function name being a reference to the function 
> body, cf. lots of other languages. However D rejects:
>
> 	iterative

Try

&iterative



The compiler would probably optimize out a trivial thing anyway, 
but &foo should work too in most cases.


More information about the Digitalmars-d-learn mailing list