[Issue 5299] Protected inheritance is semantically undefined.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 1 10:13:38 PST 2010


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> 2010-12-01 10:12:07 PST ---
Well, that's exceptionally weird. It compiles too. D doesn't support any kind
of inheritance but public. It seems like either it's a hold-over which was
never removed (assuming that D supported private or protected inheritance in
the past), or it was intended to make porting C++ code easier. But it seems to
me that allowing and then ignoring (as the compiler presumably does) protection
identifiers when inheriting classes is not good behavior. The fact that the
compiler allows it though means that it's more than just a spec issue.

-- 
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