home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / cplus / 19652 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.2 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!engr.uark.edu!mbox.ualr.edu!eivax.ualr.edu!hood
  2. Newsgroups: comp.lang.c++
  3. Subject: Re: Why X::X(X &a), not X::X(X a) ?
  4. Message-ID: <1993Jan20.130006.1@ualr.edu>
  5. From: hood@ualr.edu
  6. Date: 20 Jan 93 13:00:06 CST
  7. Reply-To: hood%eivax@ualr.edu
  8. References: <1993Jan12.155159.22650@mobil.com> <harvey.726884989@regina> <1993Jan15.092416.1@ualr.edu> <884@ulogic.UUCP>
  9. Organization: University of Arkansas at Little Rock
  10. Nntp-Posting-Host: eivax.ualr.edu
  11. Lines: 24
  12.  
  13. In article <884@ulogic.UUCP>, hartman@ulogic.UUCP (Richard M. Hartman) writes:
  14. > In article <1993Jan15.092416.1@ualr.edu> hood%eivax@ualr.edu writes:
  15. >>  Since the copy constructor should not normally 
  16. >>modify the source object a better declaration would be X::X( const X a)
  17. > I am assuming a typo.  Shouldn't that be:
  18. >     X::X(const X &a)    ?
  19.  
  20. Your right, it was a typo; the way you show it is correct.
  21.  
  22. William G. Hood
  23. University of Arkansas at Little Rock
  24. Internet: hood%eivax@ualr.edu
  25.  
  26. >         -Richard Hartman
  27. >         hartman@ulogic.COM
  28. > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  29. > "Who knows what evil lurks in the hearts of men?"
  30.