home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11414 < prev    next >
Encoding:
Internet Message Format  |  1992-07-23  |  1.4 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!mips!swrinde!elroy.jpl.nasa.gov!ames!network.ucsd.edu!ucsbcsl!foxtrot.ccmrc.ucsb.edu
  2. From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Programming guidelines: naming of data members?
  5. Message-ID: <5366@ucsbcsl.ucsb.edu>
  6. Date: 23 Jul 92 17:08:02 GMT
  7. References: <1992Jul20.232457.8295@taumet.com>
  8. Sender: root@ucsbcsl.ucsb.edu
  9. Reply-To: doug@foxtrot.ccmrc.ucsb.edu
  10. Distribution: usa
  11. Lines: 24
  12.  
  13. In article <1992Jul20.232457.8295@taumet.com> steve@taumet.com (Steve Clamage)  
  14. writes:
  15. ] sjm@bcrki65.bnr.ca (Stuart MacMartin) writes:
  16. ] >Some people have suggested using the convention of prefixing data members
  17. ] >with an underscore, e.g. _name, _virtual and _template.   This is  
  18. recommended
  19. ] >by Plum & Saks in "C++ Programming Guidelines", and recommended *against*
  20. ] >in the Ellemtel coding standards.
  21. ] >I ...  am also somewhat alarmed by the ARM, p.7:
  22. ] >   Identifiers starting with a single underscore (_) should also be
  23. ] >   avoided by ordinary users since C implementations reserve those for
  24. ] >   their own use.
  25.  
  26. I use underscores *after* the names, like length_ and name_.  These conflict  
  27. with nothing I know of.
  28.  
  29. --
  30. Douglas Scott                              (805)893-8352
  31. Center for Computer Music Research and Composition
  32. University of California, Santa Barbara
  33. Internet: (NeXTMail ok)   <doug@foxtrot.ccmrc.ucsb.edu>
  34.