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;
foo.bar(3);

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);

--
/Jacob Carlborg

Reply via email to