Uniform Function Call Syntax in D - GameDev.net
    Ali Çehreli 
    acehreli at yahoo.com
       
    Mon Jul  2 00:49:08 PDT 2012
    
    
  
On 07/01/2012 11:11 PM, Jonathan M Davis wrote:
 > Yes, but as I said, if it _didn't_ select the member function when 
there was a
 > conflict, it would be impossible to call the member function whenever 
there was
 > a conflict.
I wouldn't be a fan of it but I think it would still be possible:
class C
{
     void foo()
     {}
}
void main()
{
     auto c = new C();
     auto c_foo = &c.foo;
     c_foo();
}
Ali
    
    
More information about the Digitalmars-d-announce
mailing list