From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19535 invoked by alias); 10 Mar 2004 15:57:13 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 19528 invoked from network); 10 Mar 2004 15:57:12 -0000 Received: from unknown (HELO bclcl1.im.battelle.org) (131.167.1.2) by sources.redhat.com with SMTP; 10 Mar 2004 15:57:12 -0000 Received: from ws-bco-scn3.milky-way.battelle.org ([131.167.1.110]) by BCLCL1 (PMDF V5.1-10 #U2779) with ESMTP id <01L7K5MKV7YE90TNSK@BCLCL1> for gcc-help@gcc.gnu.org; Wed, 10 Mar 2004 10:55:00 EST Received: from ws-bco-mse1.milky-way.battelle.org ([131.167.1.91]) by ws-bco-scn3 with trend_isnt_name_B; Wed, 10 Mar 2004 10:54:29 -0500 Received: from ws-bco-mse4.milky-way.battelle.org ([131.167.1.104]) by ws-bco-mse1.milky-way.battelle.org with Microsoft SMTPSVC(5.0.2195.5329) ; Wed, 10 Mar 2004 10:54:28 -0500 Date: Wed, 10 Mar 2004 16:02:00 -0000 From: "Moore, Mathew L" Subject: RE: Great g++ bug! Local destructor isn't called! To: Eljay Love-Jensen , gcc-help@gcc.gnu.org Message-id: MIME-version: 1.0 Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: quoted-printable content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 10 Mar 2004 15:54:29.0041 (UTC) FILETIME=[F874EA10:01C406B7] X-SW-Source: 2004-03/txt/msg00097.txt.bz2 > BTW, in general, I've found that it's usually best NOT to put=20 > in throw=20 > specifications for functions / methods. Ever. (This=20 > restriction does not=20 > apply to putting in the "throw() -- I throw nothing, ever"=20 > specification. But even that should be used with great caution.) >=20 Just out of curiosity, what is the reasoning for this? Is this for g++ specifically, or C++ in general? Thanks, --Matt > If C++ did exception specifications like how Java does them,=20 > then that'd be=20 > a different story. >=20 > --Eljay >=20 >=20