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