www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Can alias compose! receive more than one argument?

reply Marcone <marcone email.om> writes:
I get this eror:


Example:

     alias a = compose!(x,y => x*y);

     writeln(a(2,5));

// Error: onlineapp.d(4): Error: undefined identifier x
Jan 07
parent Marcone <marcone email.om> writes:
My mistake:

alias a = compose!((x,y) => x*y);
Jan 07