home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / cplus / 19009 < prev    next >
Encoding:
Text File  |  1993-01-12  |  472 b   |  16 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mailgate.mobil.com!winney
  3. From: winney@dal.mobil.com (Randy Winney)
  4. Subject: Why X::X(X &a), not X::X(X a) ?
  5. Message-ID: <1993Jan12.155159.22650@mobil.com>
  6. Sender: news@mobil.com
  7. Organization: Mobil Exploration & Producing Technical Center(MEPTEC), Dallas. 
  8. Date: Tue, 12 Jan 1993 15:51:59 GMT
  9. Lines: 5
  10.  
  11. Could someone explain to us neophytes why C++ requires
  12. that I use the constructor
  13.  X::X(X &a)
  14. instead of simply
  15.  X::X(X a)
  16.