home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12726 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  38 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!swillden
  3. From: swillden@news.ccutah.edu (Shawn Willden)
  4. Subject: Re: destruction of temporaries
  5. Message-ID: <1992Aug21.145420.16283@fcom.cc.utah.edu>
  6. Sender: news@fcom.cc.utah.edu
  7. Organization: University of Utah Computer Center
  8. X-Newsreader: Tin 1.1 PL3
  9. References: <1992Aug21.005722.16573@ucc.su.OZ.AU>
  10. Date: Fri, 21 Aug 92 14:54:20 GMT
  11. Lines: 25
  12.  
  13. : >
  14. : >The properties of temporaries are no different (and no worse) than the
  15. : >properties of automatic variables: pointers to them become invalid
  16. : >when the object disappears.
  17. :     When is that?
  18. : >
  19. : >If you want to be able to implement anything more powerful, you need
  20. : >(surprise!) garbage collection (as stated in the ARM, p. 268). 
  21. :     In other words, if you cant define a sensible
  22. : length of time for temporaries to hang around on a static basis,
  23. : then dont--define it dynamically.
  24. : -- 
  25. : ;----------------------------------------------------------------------
  26. :         JOHN (MAX) SKALLER,         maxtal@extro.ucc.su.oz.au
  27. :     Maxtal Pty Ltd, 6 MacKay St ASHFIELD, NSW 2131, AUSTRALIA
  28. : ;--------------- SCIENTIFIC AND ENGINEERING SOFTWARE ------------------
  29.  
  30. --
  31. Shawn Willden
  32. swillden@icarus.weber.edu
  33.