home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12604 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  860 b 

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!carbon!news.cs.indiana.edu!syscon!gator!fang!att!allegra!alice!ark
  2. From: ark@alice.att.com (Andrew Koenig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Return value for the constructors.
  5. Message-ID: <23491@alice.att.com>
  6. Date: 19 Aug 92 20:46:04 GMT
  7. Article-I.D.: alice.23491
  8. References: <3462@unisql.UUCP> <1992Aug18.210426.19494@sunb10.cs.uiuc.edu> <H575V1E@netmbx.netmbx.de>
  9. Reply-To: ark@alice.UUCP ()
  10. Distribution: usa
  11. Organization: AT&T Bell Laboratories, Liberty Corner NJ
  12. Lines: 11
  13.  
  14. In article <H575V1E@netmbx.netmbx.de> jrobie@netmbx.netmbx.de (Jonathan Robie) writes:
  15.  
  16. > But note this example from the ARM, page 62:
  17.  
  18. >     complex* p = new complex(i++);
  19. >     if (p == 0)  // allocation failed!
  20.  
  21. This is a characteristic of new-expressions, not constructors.
  22. -- 
  23.                 --Andrew Koenig
  24.                   ark@europa.att.com
  25.