home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / cplus / 12979 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.0 KB  |  31 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!uunet.ca!frumious!pat
  3. From: pat@frumious.uucp (Patrick Smith)
  4. Subject: Re: destruction of temporaries
  5. Message-ID: <1992Aug27.004434.486@frumious.uucp>
  6. Date: Thu, 27 Aug 1992 00:44:34 GMT
  7. Reply-To: uunet.ca!frumious!pat
  8. References: <3920@starlab.UUCP> <23487@alice.att.com> <1992Aug25.182538.9117@microsoft.com>
  9. Organization: None
  10. Lines: 19
  11.  
  12. jimad@microsoft.com (Jim Adcock) writes:
  13. |I suggest that something like the following set of rules would in practice
  14. |allow compiler implementations such that all existing conforming
  15. |compiler/program pairs could continue to work:
  16.  
  17. [ some rules deleted ]
  18.  
  19. |3) Temporaries must live until after their last access or end of block --
  20. |whichever comes first.
  21.  
  22. In order for this to work, we would need rules as to what constitutes
  23. an 'access' to a temporary.  What rules would you suggest?
  24. (Personally, I think finding good rules would be a very hard
  25. problem.  But I hope to be pleasantly surprised.)
  26.  
  27. -- 
  28. Patrick Smith
  29. uunet.ca!frumious!pat
  30. pat%frumious.uucp@uunet.ca
  31.