From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9033 invoked by alias); 9 May 2003 05:46:25 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 8920 invoked from network); 9 May 2003 05:46:21 -0000 Received: from unknown (HELO khms.westfalen.de) (80.130.83.212) by sources.redhat.com with SMTP; 9 May 2003 05:46:21 -0000 Received: from root by khms.westfalen.de with local-bsmtp (Exim 3.35 #1) id 19Drmb-0002xK-00 (Debian); Thu, 08 May 2003 22:14:25 +0200 Received: by khms.westfalen.de (CrossPoint v3.12d.kh10 R/C435); 08 May 2003 22:13:48 +0200 Date: Fri, 09 May 2003 05:46:00 -0000 From: kaih@khms.westfalen.de (Kai Henningsen) To: gcc@gcc.gnu.org Message-ID: <8lSFbj1Xw-B@khms.westfalen.de> In-Reply-To: <1052345885.5665.64.camel@doubledemon.codesourcery.com> Subject: Re: __attribute__((cleanup(function)) versus try/finally MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Organisation? Me?! Are you kidding? References: <1052256289.2583.412.camel@doubledemon.codesourcery.com> <1052345885.5665.64.camel@doubled X-No-Junk-Mail: I do not want to get *any* junk mail. Comment: Unsolicited commercial mail will incur an US$100 handling fee per received mail. X-Fix-Your-Modem: +++ATS2=255&WO1 X-SW-Source: 2003-05/txt/msg00863.txt.bz2 mark@codesourcery.com (Mark Mitchell) wrote on 07.05.03 in <1052345885.5665.64.camel@doubledemon.codesourcery.com>: > Seriously, one of the few remaining objections to programming in C++ has > been "exceptions add too much overhead". Once we add unwind tables to C > -- as all of our proposals do, including mine -- I'm not really sure > what the point of programming in C is going to be any more. To me, the worst thing about C++ is the syntax. As someone who wrote a parser, I'm sure you know better than I where all the skeletons lie. The second worst thing is the concept of "POD" vs. "non-POD" types. This seems expressly designed to violate the principle of least surprise. Exceptions aren't even in the running. Exceptions are something that's present in almost every modern language - but most don't have syntax backtracking, or types both with and without initialization by default (and you can't add it to those that haven't got it without major surgery). Programmer overhead, to me, is much more important than implementation overhead. Especially if the implementation overhead is only on the slow path. MfG Kai