Pointers to non-static member functions!
Daniel Murphy
yebblies at nospamgmail.com
Wed Jun 8 06:24:43 PDT 2011
"Michel Fortin" <michel.fortin at michelf.com> wrote in message
news:isnj6i$2afd$1 at digitalmars.com...
>
> I think it should work like my D/Objective-C language extension does it
> for selectors.
> <http://michelf.com/projects/d-objc/syntax/#selector-literals>
>
> &A.func should return a *member* function pointer which wants a 'this'
> parameter, and when you call it you should be required to add the 'this'
> argument at the beginning of the argument list, like this:
>
This would be nice to have, but the compiler would need to use a different
calling convention or generate multiple function beginnings, as the this
parameter must be passed last.
This case is related to http://d.puremagic.com/issues/show_bug.cgi?id=2672
More information about the Digitalmars-d
mailing list