home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11680 < prev    next >
Encoding:
Text File  |  1992-07-28  |  1.6 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!darwin.sura.net!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
  3. From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
  4. Subject: Re: const on pass by value
  5. Message-ID: <1992Jul28.182049.22985@ucc.su.OZ.AU>
  6. Sender: news@ucc.su.OZ.AU
  7. Nntp-Posting-Host: extro.ucc.su.oz.au
  8. Organization: MAXTAL P/L C/- University Computing Centre, Sydney
  9. References: <1992Jul24.151010.11969@PacBell.COM> <1992Jul25.071559.4236@uunet.uu.net!mole-end> <9220801.5026@mulga.cs.mu.OZ.AU>
  10. Date: Tue, 28 Jul 1992 18:20:49 GMT
  11. Lines: 23
  12.  
  13. In article <9220801.5026@mulga.cs.mu.OZ.AU> fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON) writes:
  14. >>
  15. >>It's not nitpicking.  It's part of something called const correctness.
  16. >>Your program has it or doesn't.  Programs that have it are almost immune
  17. >>to a certain large family of errors.
  18. >
  19. >Huh? In this example, it IS just nitpicking.
  20. >How could the presence or absence of const in the declaration for foo
  21. >affect the program's const correctness?
  22. >
  23. >For pass-by-value arguments, using const is a matter of taste.
  24. >Personally I don't bother: programs have been traditionally written without
  25. >const in these cases, and I don't see any reason to change.
  26. >(Besides, this avoids unnecessary typing :-)
  27.  
  28.     Isn't there a rule about EXACT matches for
  29. templates? (Anyone know the status here?)
  30.  
  31. -- 
  32. ;----------------------------------------------------------------------
  33.         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  34.     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  35. ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  36.