[Issue 2417] protected base member is not available via base hanlde in a derived class if it is defined in a separate module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 18 08:41:45 PDT 2008


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





------- Comment #7 from schveiguy at yahoo.com  2008-10-18 10:41 -------
clone does not need a different behavior, this should work:

class C
{
   protected int x;
   C clone()
   {
      auto ret = new C;
      ret.x = x;
      return ret;
   }
}

I don't see the problem.


-- 



More information about the Digitalmars-d-bugs mailing list