Re: UFCS for types?

2012-04-01 Thread James Miller
On 31 March 2012 21:37, simendsjo simend...@gmail.com wrote: 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' } As far

UFCS for types?

2012-03-31 Thread simendsjo
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' }