home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!att!allegra!alice!ark
- From: ark@alice.att.com (Andrew Koenig)
- Newsgroups: comp.lang.c++
- Subject: Re: destruction of temporaries
- Message-ID: <23523@alice.att.com>
- Date: 22 Aug 92 04:15:51 GMT
- Article-I.D.: alice.23523
- References: <1992Aug17.073500.24115@ericsson.se> <23466@alice.att.com> < <TMB.92Aug19113657@arolla.idiap.ch>> < <1992Aug20.092752.29529@mole-end.matawan.nj.us>> <TMB.92Aug21160625@arolla.idiap.ch> <rmartin.714434539@thor>
- Reply-To: ark@alice.UUCP ()
- Organization: AT&T Bell Laboratories, Murray Hill NJ
- Lines: 12
-
- In article <rmartin.714434539@thor> rmartin@thor.Rational.COM (Bob Martin) writes:
-
- > In any situation where a
- > pointer or reference to a temporary is being taken, the compiler
- > should complain.
-
- Suppose we have class String with a member function called `size'
- that returns the number of characters in the string. If f is a function
- that yields a String, do you really want to prohibit f().size()?
- --
- --Andrew Koenig
- ark@europa.att.com
-