is there a difference between those two notations
Jesse Phillips
Jessekphillips+D at gmail.com
Mon Apr 30 09:56:59 PDT 2012
On Monday, 30 April 2012 at 15:19:02 UTC, Christian Köstlin
wrote:
> reduce!((int a, int b){return a+b;})(iota(100))
> reduce!("a+b")(iota(100))
>
> thanks in advance
>
> christian koestlin
The answer to your question should be no. The second is
transformed into a delegate like the first during compilation.
Note that there is also C# like lambdas
(a, b) => a+b
More information about the Digitalmars-d-learn
mailing list