[Bug 177] New: remove inheritance protection
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jun  6 15:03:43 PDT 2006
    
    
  
http://d.puremagic.com/bugzilla/show_bug.cgi?id=177
           Summary: remove inheritance protection
           Product: D
           Version: unspecified
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: benoit at tionex.de
Every class in D is inherit from the class 'Object'. D does not support
multiple inheritance. But if I do this:
class D{
}
class T : private D {
}
Now this invariant is not true any more.
The functionality from Object is no more visible to a user of T.
e.g. container can complain, they cannot access opEqual. 
I think the D spec is not logic in this point and the inheritance protection
should be removed.
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list