From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15403 invoked by alias); 4 Oct 2002 18:39:34 -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 15353 invoked from network); 4 Oct 2002 18:39:31 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 4 Oct 2002 18:39:31 -0000 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.10) id 17xXMI-0007uK-01 for gcc@gnu.org; Fri, 04 Oct 2002 14:39:30 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17xXM8-0001yk-00 for gcc@gnu.org; Fri, 04 Oct 2002 14:39:21 -0400 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237] helo=executor.cambridge.redhat.com) by monty-python.gnu.org with esmtp (Exim 4.10) id 17xXM7-0001wS-00 for gcc@gnu.org; Fri, 04 Oct 2002 14:39:19 -0400 Received: from prospero.cambridge.redhat.com (dell-paw-2.cambridge.redhat.com [195.224.55.226]) by executor.cambridge.redhat.com (Postfix) with ESMTP id 81AF5ABB0C; Fri, 4 Oct 2002 19:39:17 +0100 (BST) Received: by prospero.cambridge.redhat.com (Postfix, from userid 4046) id 547B4F78F8; Fri, 4 Oct 2002 19:39:09 +0100 (BST) To: Aldy Hernandez Cc: "Michael Lovett" , Subject: Re: GCC Feature question References: From: Jason Merrill In-Reply-To: (Aldy Hernandez's message of "27 Sep 2002 20:42:56 -0700") Date: Fri, 04 Oct 2002 12:26:00 -0000 Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Status: No, hits=-4.9 required=5.0 tests=DATE_IN_PAST_48_96,EMAIL_ATTRIBUTION,IN_REP_TO, QUOTED_EMAIL_TEXT,SPAM_PHRASE_00_01,USER_AGENT version=2.41 X-Spam-Level: X-SW-Source: 2002-10/txt/msg00282.txt.bz2 On 27 Sep 2002 20:42:56 -0700, Aldy Hernandez wrote: > > We are porting apps to UNIX from Windows but so far can't find a > > compiler with try/finally. It is such a useful, convenient construct > > it is hard to imagine structured programming without it. > > C or C++? With C++ you can emulate it with constructors, albeit ugly. It's not *that* ugly. For C++ using a destructor encourages you to write reusable finalization code. Jason