home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 13071 < prev    next >
Encoding:
Text File  |  1992-08-30  |  756 b   |  31 lines

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wupost!uwm.edu!rutgers!cmcl2!acf5!checker
  2. From: checker@acf5.NYU.EDU (checker)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Inherited nested classes?
  5. Message-ID: <1894@acf5.NYU.EDU>
  6. Date: 30 Aug 92 18:23:57 GMT
  7. References: <1992Aug29.160423.16617@genghis.borland.com> <4902@holden.lulea.trab.se>
  8. Organization: New York University
  9. Lines: 20
  10.  
  11. jbn@lulea.trab.se (Johan Bengtsson) writes:
  12. >Are private nested types useful at all, given the current language definition?
  13.  
  14. Huh?  How else would you have the access control work?  Of course they
  15. are useful:
  16.  
  17. class list
  18. {
  19. public:
  20.     // ...
  21. private:
  22.     class list_node
  23.     {
  24.         // ...
  25.     }
  26.  
  27.     list_node *pHead;
  28. };
  29.  
  30. Chris
  31.