Parameterized aliases

Piotr Szturmaj bncrbme at jadamspam.pl
Mon Aug 12 13:06:15 PDT 2013


Hi D community!

What do you think of such templated aliases:

template SomeTemplate(T1, T2) { }

alias Partial(T) = SomeTemplate!(int, T);

alias Specialized = Partial!float; // equivalent to SomeTemplate!(int, 
float)

I think they could be pretty helpful and they should be relatively easy 
to implement.


More information about the Digitalmars-d mailing list