"static" UFCS

Walter Bright newshound2 at digitalmars.com
Fri Jun 15 17:50:33 PDT 2012


On 6/13/2012 11:46 PM, Jacob Carlborg wrote:
> Is it possible, somehow, to emulate adding new _static_ methods to a class,
> something like this:
>
> void fooBar (/*something*/, int x) {}
>
> Making this possible:
>
> Foo.fooBar(4);

What's the compelling use case?



More information about the Digitalmars-d mailing list