Pointers to non-static member functions!
Daniel Murphy
yebblies at nospamgmail.com
Wed Jun 8 11:49:12 PDT 2011
"Michel Fortin" <michel.fortin at michelf.com> wrote in message
news:isog18$13vc$1 at digitalmars.com...
>
> Now that I think about it, perhaps UFCS would make all this unnecessary.
>
> void callMe(alias memberFunc)(Object o) {
> o.memberFunc(); // error, no member called "memberFunc" in o
> memberFunc(o); // works?
> }
>
Somebody recently suggested making a parameter to enable a function to be
called with ufcs.
void func(int a, int b, Object this) {}
A pointer to a function like this could be the same type as a member
function pointer.
More information about the Digitalmars-d
mailing list