home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13205 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!taumet!steve
  3. From: steve@taumet.com (Steve Clamage)
  4. Subject: Re: Protected Derived classes.
  5. Message-ID: <1992Sep2.162011.11113@taumet.com>
  6. Organization: TauMetric Corporation
  7. References: <3570@unisql.UUCP>
  8. Date: Wed, 2 Sep 1992 16:20:11 GMT
  9. Lines: 25
  10.  
  11. nandraj@unisql.UUCP (Nandraj Arni) writes:
  12.  
  13.  
  14. >     I wanted to know why protected derived classes are not disscussed
  15. >in ARM and not implemented in our GNU C++ compiler. What I am talking 
  16. >about is:
  17.  
  18. >class B { /*...*/ };
  19.  
  20. >class D : protected B { /* ...*/ };
  21.  
  22. This feature was added to the language after the ARM was published.
  23. It is discussed in these two books:
  24. Bjarne Stroustrup, "The C++ Programming Language", 2nd Edition
  25. Stan Lippman, "C++ Primer", 2nd Edition
  26.  
  27. I don't know which compilers implement the feature.  Scott Meyers, in
  28. "Effective C++", mentions the feature, but says he doesn't know of
  29. a good use for it.  I don't either, although some programmers have
  30. evidently found it helpful.
  31.  
  32. -- 
  33.  
  34. Steve Clamage, TauMetric Corp, steve@taumet.com
  35. Vice Chair, ANSI C++ Committee, X3J16
  36.