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