UFCS for types?

simendsjo simendsjo at gmail.com
Sat Mar 31 01:37:12 PDT 2012


Is is possible to use UFCS for types to simulate static members?

struct S {
     static void f();
}

void ext(S)() {
     S.f();
}

void main() {
     ext!S(); // ok
     S.ext(); // Error: no property 'ext' for type 'S'
}


More information about the Digitalmars-d-learn mailing list