Re: UFCS for types?
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?
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' }