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

  1. Path: sparky!uunet!kithrup!hoptoad!decwrl!deccrl!bloom-beacon!eru.mt.luth.se!lunic!sunic!mcsun!Germany.EU.net!unido!starlab!mi
  2. From: mi@starlab.UUCP (Michael Hoennig)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: destruction of temporaries
  5. Keywords: temporaries,destruction,constructor,initialization
  6. Message-ID: <3921@starlab.UUCP>
  7. Date: 19 Aug 92 06:44:49 GMT
  8. References: <23466@alice.att.com> <1992Aug17.211508.6634@lucid.com> <23471@alice.att.com>
  9. Organization: StarDivision GmbH, D-2000 Hamburg, Germany
  10. Lines: 22
  11.  
  12. Hi Net-World,
  13.  
  14. there is another problem too:
  15.  
  16. Class::Class()
  17.     ParentClass( Resource( 1000 ) ),
  18.     aMember1( SubResource( 10 ) ),
  19.     aMember2( SubResource( 20 ) )
  20. {}
  21.  
  22. When should be called the destructor of Resource(1000)? Microsoft C++ 7.0 
  23. will never call it - this of cause is a bug. Borland C++ 3.0 too. Borland
  24. C++ 3.1 calls it immediatly after the expression - at the comma. Zortech
  25. C++ 3.0 Release 4 calls it at the obening brace ({)and cfronts (as I 
  26. remember correctly) at the closing brace (}).
  27.  
  28. Adios
  29. -- 
  30. Michael Hoennig                                  FAX:   +49 40 23 646 550
  31. StarDivision GmbH                                Phone: +49 40 23 646 500
  32. Sachsenfeld 4                                    uucp: ...!unido!starlab!mi
  33. D-W-2000 Hamburg 1                               domain: mi@starlab.uucp
  34.