home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18544 < prev    next >
Encoding:
Text File  |  1992-12-30  |  743 b   |  25 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!rpi!usc!elroy.jpl.nasa.gov!jato!csi!mwette
  3. From: mwette@csi.jpl.nasa.gov (Matt Wette)
  4. Subject: why `int X: :X()' ?
  5. Message-ID: <1992Dec30.172537.12477@csi.jpl.nasa.gov>
  6. Originator: mwette@mr-ed
  7. Sender: usenet@csi.jpl.nasa.gov (Network Noise Transfer Service)
  8. Nntp-Posting-Host: mr-ed
  9. Organization: Jet Propulsion Laboratory
  10. Date: Wed, 30 Dec 1992 17:25:37 GMT
  11. Lines: 12
  12.  
  13.  
  14. I'm starting to really get into some C++ programming and was wondering
  15. about the following:
  16.  
  17. Why are constructor and destructor functions usually declared to return
  18. ints when the usage typically warrents a `void' declaration.
  19.  
  20. Is this a requirement or just a convention?
  21.  
  22. Matt
  23. -- 
  24. mwette@csi.jpl.nasa.gov
  25.