home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!uunet.ca!frumious!pat
- From: pat@frumious.uucp (Patrick Smith)
- Subject: Re: destruction of temporaries
- Message-ID: <1992Aug27.004434.486@frumious.uucp>
- Date: Thu, 27 Aug 1992 00:44:34 GMT
- Reply-To: uunet.ca!frumious!pat
- References: <3920@starlab.UUCP> <23487@alice.att.com> <1992Aug25.182538.9117@microsoft.com>
- Organization: None
- Lines: 19
-
- jimad@microsoft.com (Jim Adcock) writes:
- |I suggest that something like the following set of rules would in practice
- |allow compiler implementations such that all existing conforming
- |compiler/program pairs could continue to work:
-
- [ some rules deleted ]
-
- |3) Temporaries must live until after their last access or end of block --
- |whichever comes first.
-
- In order for this to work, we would need rules as to what constitutes
- an 'access' to a temporary. What rules would you suggest?
- (Personally, I think finding good rules would be a very hard
- problem. But I hope to be pleasantly surprised.)
-
- --
- Patrick Smith
- uunet.ca!frumious!pat
- pat%frumious.uucp@uunet.ca
-