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