home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16019 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.7 KB

  1. Xref: sparky comp.lang.c++:16019 comp.std.c++:1527
  2. Newsgroups: comp.lang.c++,comp.std.c++
  3. Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
  4. From: sakkinen@jyu.fi (Markku Sakkinen)
  5. Subject: Re: PROPOSAL: Hidden private parts of classes
  6. Message-ID: <1992Nov10.071110.6177@jyu.fi>
  7. Organization: University of Jyvaskyla, Finland
  8. References: <1992Oct30.113234.15010@daimi.aau.dk> <1992Nov7.154137.21910@ucc.su.OZ.AU> <1992Nov9.032225.10320@taumet.com>
  9. Date: Tue, 10 Nov 1992 07:11:10 GMT
  10. Lines: 28
  11.  
  12. In article <1992Nov9.032225.10320@taumet.com> steve@taumet.com (Steve Clamage) writes:
  13. >maxtal@extro.ucc.su.OZ.AU (John MAX Skaller) writes:
  14. >> ...
  15. >
  16. >If you mean private non-virtual member functions which don't appear in
  17. >the class definition, it would cause another language change.
  18. >Overloading is resolved before accessibility is checked.  Suppose we have:
  19. > ...
  20. > ...  Overloading
  21. >is resolved first precisely to avoid quiet semantic changes based only
  22. >on access rights.
  23.  
  24. In my opinion, it was a bad choice in the first place to resolve
  25. overloading before accessibility, although the argument presented in the ARM
  26. makes partial sense.  However, that argument does not apply at all
  27. to this new suggestion:  since such helper functions were to be declared
  28. outside the class definitions, they cannot be made accessible to derived
  29. classes or outside cliennt just by changing access rights.
  30.  
  31. ----------------------------------------------------------------------
  32. Markku Sakkinen (sakkinen@jytko.jyu.fi)
  33.        SAKKINEN@FINJYU.bitnet (alternative network address)
  34. Department of Computer Science and Information Systems
  35. University of Jyvaskyla (a's with umlauts)
  36. PL 35
  37. SF-40351 Jyvaskyla (umlauts again)
  38. Finland
  39. ----------------------------------------------------------------------
  40.