Article View: comp.std.c++
Article #459Protected base classes
From: Matthias Ulrich Neeracher
Date: Thu, 30 Aug 1990 13:14
Date: Thu, 30 Aug 1990 13:14
25 lines
1221 bytes
1221 bytes
Recently, I tried to use a protected base class, like this:
class A {
...
};
class B:protected A {
...
};
To my surprise, my compiler (based on CFront 2.0) refused to compile this.
The ARM doesn't seem to be clear about this: The syntax seems to allow it,
but the text and examples don't mention it.
My question is: If protected base classes are indeed illegal, why are they
and what speaks against adding them to C++ ?
I hope this question is not inappropriate for this newsgroup.
Matthias
-----
Matthias Neeracher mneerach@inf.ethz.ch
"I wouldn't recommend sex, drugs or insanity for everyone,
but they've always worked for me" -- Hunter S. Thompson
Technical Details
Message-ID:
<5026@neptune.inf.ethz.ch>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!ethz!neptune!c!mneerachShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!cernvax!chx400!ethz!neptune!c!mneerach From: mneerach@c.inf.ethz.ch (Matthias Ulrich Neeracher) Newsgroups: comp.std.c++ Subject: Protected base classes Summary: Why are there none ? Message-ID: <5026@neptune.inf.ethz.ch> Date: 30 Aug 90 13:14:09 GMT Sender: news@neptune.inf.ethz.ch Reply-To: mneerach@c.inf.ethz.ch (Matthias Ulrich Neeracher) Organization: Departement Informatik, ETH, Zurich Lines: 25