All right, all right! Interim decision regarding qualified Object methods

bearophile bearophileHUGS at lycos.com
Thu Jul 12 08:05:20 PDT 2012


deadalnix:

> The @templated is redundant with that backend capability of LDC.

The semantics is not the same. This code doesn't compile, the 
compiler enforces you are not using T in code that is annotated 
to be a template of just V:


struct Foo(T, V) {
   @templated(V) T bar() { return T.init; }
}


Bye,
bearophile


More information about the Digitalmars-d mailing list