home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12899 < prev    next >
Encoding:
Internet Message Format  |  1992-08-25  |  1.3 KB

  1. From: Monroe.Thomas@ttlg.UUCP (Monroe Thomas)
  2. Sender: postmaster@ttlg.UUCP
  3. Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!alberta!ttlg!postmaster
  4. Newsgroups: comp.lang.c++
  5. Subject: Re: destruction of tempo
  6. Message-ID: <714807912.0@ttlg.ttlg.UUCP>
  7. Date: 25 Aug 92  20:51:00 mst
  8. Lines: 32
  9.  
  10. EN>From: eny@ermes.enea.se (Erik Nykvist)
  11.   >Path: alberta!kakwa.ucs.ualberta.ca!unixg.ubc.ca!ubc-
  12.   >cs!destroyer!gatech!bloom-
  13.   >beacon!eru.mt.luth.se!lunic!sunic!seunet!enea!ermes!eny
  14.   >Newsgroups: comp.lang.c++
  15.   >Subject: Re: destruction of temporaries
  16.   >Organization: Project ERMES, Teli Telecom Sweden
  17.   >Message-ID: <1992Aug25.113913.28554@ermes.enea.se>
  18.   >References: <23487@alice.att.com>
  19.   >Date: 25 Aug 92 11:39:13 GMT
  20.  
  21. EN>Maybe we should invent a new type of compound statement in C++. ;-)
  22.  
  23. EN>{!
  24.   >    ....
  25.  
  26. EN>!}
  27.  
  28. EN>Within this type of compound statement all temporaries will survive until
  29.   >end of scope. Within such a statement only a restricted set of C++ would
  30.   >be allowed.
  31.  
  32. Problem with this is that it makes the programmer responsible for when
  33. temporaries are going to be needed for the whole scope of a block.
  34. Few enough programmers know what temporaries are let alone know when
  35. they are going to be needed for a whole block.
  36.  
  37. -Monroe
  38.  
  39.  * OLX 2.2 * Kix are for trids.
  40.  
  41.  * Origin: Through the Looking Glass (42:100/14)
  42.