Member function pointers

Daniel Murphy yebblies at nospamgmail.com
Tue Jun 11 06:06:48 PDT 2013


"Michel Fortin" <michel.fortin at michelf.ca> wrote in message 
news:kp4nr0$q71$1 at digitalmars.com...
>
> I just find it sad that we have to use a different calling convention for 
> member functions. I mean, it'd be much more elegant be if a member 
> function could simply be called from a "void function(Object)" by 
> supplying "this" as the first argument? Wouldn't it be better to adapt the 
> ABI to fit the language rather than adapt the language to fit the ABI?
>

For D, yes, and it would be awesome.  For everything else, never ever ever. 




More information about the Digitalmars-d mailing list