home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!swrinde!mips!mips!munnari.oz.au!metro!extro.ucc.su.OZ.AU!maxtal
- From: maxtal@extro.ucc.su.OZ.AU (John MAX Skaller)
- Newsgroups: comp.lang.c++
- Subject: Re: destruction of temporaries
- Message-ID: <1992Aug14.230850.6662@ucc.su.OZ.AU>
- Date: 14 Aug 92 23:08:50 GMT
- References: <46140@sunquest.UUCP>
- Sender: news@ucc.su.OZ.AU
- Organization: MAXTAL P/L C/- University Computing Centre, Sydney
- Lines: 17
- Nntp-Posting-Host: extro.ucc.su.oz.au
-
- In article <46140@sunquest.UUCP> bill@sunquest.UUCP (Bill Raves) writes:
- >know the details of the implementation. What *specific* guidelines
- >would you suggest for avoiding potential problems with unnamed tem-
- >poraries?
- >
-
- Name them. Take control of their lifetime.
- This is not always possible, of course.
-
- f(a+b)--> {T c=a+b; f(c);}
-
-
- --
- ;----------------------------------------------------------------------
- JOHN (MAX) SKALLER, maxtal@extro.ucc.su.oz.au
- Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
- ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
-