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