On alias a = b

KennyTM~ kennytm at gmail.com
Fri Mar 18 13:41:42 PDT 2011


On Mar 19, 11 04:28, so wrote:
> alias a(T) = b(T, known_type);
>
> Would it be an overkill?

If B is a template I think it's more consistent to add a '!':

    alias A(T) = B!(T, int);

But I don't think it worth such generalization given the existing syntax 
already works:

    template A(T) {
      alias B!(T, int) A;
      // alias A = B!(T, known_type);
    }


More information about the Digitalmars-d mailing list