home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!taumet!steve
- From: steve@taumet.com (Steve Clamage)
- Subject: Re: Protected Derived classes.
- Message-ID: <1992Sep2.162011.11113@taumet.com>
- Organization: TauMetric Corporation
- References: <3570@unisql.UUCP>
- Date: Wed, 2 Sep 1992 16:20:11 GMT
- Lines: 25
-
- nandraj@unisql.UUCP (Nandraj Arni) writes:
-
-
- > I wanted to know why protected derived classes are not disscussed
- >in ARM and not implemented in our GNU C++ compiler. What I am talking
- >about is:
-
- >class B { /*...*/ };
-
- >class D : protected B { /* ...*/ };
-
- This feature was added to the language after the ARM was published.
- It is discussed in these two books:
- Bjarne Stroustrup, "The C++ Programming Language", 2nd Edition
- Stan Lippman, "C++ Primer", 2nd Edition
-
- I don't know which compilers implement the feature. Scott Meyers, in
- "Effective C++", mentions the feature, but says he doesn't know of
- a good use for it. I don't either, although some programmers have
- evidently found it helpful.
-
- --
-
- Steve Clamage, TauMetric Corp, steve@taumet.com
- Vice Chair, ANSI C++ Committee, X3J16
-