"static" UFCS

Jacob Carlborg doob at me.com
Wed Jun 13 23:46:13 PDT 2012

UFCS can be used to emulate adding new members/instance methods to a 
class or struct:

class Foo

void bar (Foo foo, int x) {}

auto foo = new Foo;

Is it possible, somehow, to emulate adding new _static_ methods to a 
class, something like this:

void fooBar (/*something*/, int x) {}

Making this possible:


/Jacob Carlborg

More information about the Digitalmars-d mailing list