[Issue 6434] opDispatch must be considered before alias this.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 16 03:07:35 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6434



--- Comment #3 from Max Samukha <samukha at voliacable.com> 2011-08-16 03:07:32 PDT ---
On the other hand, opDispatch considered first gives much more flexibility.
Then, what to do with regular inheritance:

class A
{ 
    int foo();
}

class B : A
{
   void opDispatch(string name)()
   {
   }
}

auto b = new B;
b.foo();

Should foo be opDispatched?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list