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

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