Higher-order functions?

Xan xancorreu at gmail.com
Wed Apr 11 03:58:49 PDT 2012


>
> Apparently your compiler does not support parameter type 
> deduction yet.
>
> void main ()
> {
>     writeln("add: ", someprocedure(2, 3, (int a, int b) { 
> return a + b; }));
>     writeln("multiply: ", someprocedure(2, 3, (int a, int b) { 
> return a * b; }));
> }


Yes, now it works!

Thanks,


More information about the Digitalmars-d-learn mailing list