home *** CD-ROM | disk | FTP | other *** search
- From: Monroe.Thomas@ttlg.UUCP (Monroe Thomas)
- Sender: postmaster@ttlg.UUCP
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!alberta!ttlg!postmaster
- Newsgroups: comp.lang.c++
- Subject: Re: destruction of tempo
- Message-ID: <714807912.0@ttlg.ttlg.UUCP>
- Date: 25 Aug 92 20:51:00 mst
- Lines: 32
-
- EN>From: eny@ermes.enea.se (Erik Nykvist)
- >Path: alberta!kakwa.ucs.ualberta.ca!unixg.ubc.ca!ubc-
- >cs!destroyer!gatech!bloom-
- >beacon!eru.mt.luth.se!lunic!sunic!seunet!enea!ermes!eny
- >Newsgroups: comp.lang.c++
- >Subject: Re: destruction of temporaries
- >Organization: Project ERMES, Teli Telecom Sweden
- >Message-ID: <1992Aug25.113913.28554@ermes.enea.se>
- >References: <23487@alice.att.com>
- >Date: 25 Aug 92 11:39:13 GMT
-
- EN>Maybe we should invent a new type of compound statement in C++. ;-)
-
- EN>{!
- > ....
-
- EN>!}
-
- EN>Within this type of compound statement all temporaries will survive until
- >end of scope. Within such a statement only a restricted set of C++ would
- >be allowed.
-
- Problem with this is that it makes the programmer responsible for when
- temporaries are going to be needed for the whole scope of a block.
- Few enough programmers know what temporaries are let alone know when
- they are going to be needed for a whole block.
-
- -Monroe
-
- * OLX 2.2 * Kix are for trids.
-
- * Origin: Through the Looking Glass (42:100/14)
-