From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6400 invoked by alias); 28 Nov 2001 14:52:49 -0000 Mailing-List: contact gdb-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6377 invoked from network); 28 Nov 2001 14:52:47 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by hostedprojects.ges.redhat.com with SMTP; 28 Nov 2001 14:52:47 -0000 Received: from redhat.com (rtl.cygnus.com [205.180.230.21]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id GAA05311; Wed, 28 Nov 2001 06:52:41 -0800 (PST) Message-ID: <3C04F9F9.33596FE8@redhat.com> Date: Mon, 19 Nov 2001 15:11:00 -0000 From: Fernando Nasser Organization: Red Hat Canada X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.3-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Andrew Cagney CC: Don Howard , gdb@sources.redhat.com Subject: Re: error-catching mechanism for scripts References: <3C04653A.7000708@cygnus.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2001-11/txt/msg00202.txt.bz2 Andrew Cagney wrote: > > From M3: > Excellent suggestion. Thanks. These is also from Object Pascal, so they are easily recognizable. It has to be the try ... except construct though. The try...finally has a different semantics. Fernando > Try Except: > http://www.research.compaq.com/SRC/m3defn/html/tryexcept.html > > TRY > Body ... > EXCEPT > exception => action; ... > END > > Try Finally: > http://www.research.compaq.com/SRC/m3defn/html/tryfinally.html > > TRY > statement 1; > FINALLY > statement 2; > END > > might give you ideas and potential semantic issues. eg > http://www.research.compaq.com/SRC/m3defn/html/exit.html > > Another key word might be trap? > > Andrew -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Nasser To: Andrew Cagney Cc: Don Howard , gdb@sources.redhat.com Subject: Re: error-catching mechanism for scripts Date: Wed, 28 Nov 2001 06:52:00 -0000 Message-ID: <3C04F9F9.33596FE8@redhat.com> References: <3C04653A.7000708@cygnus.com> X-SW-Source: 2001-11/msg00309.html Message-ID: <20011128065200.zudhzO2SG8uov-OEj_yv5QYnSOkWvaKDRBVRMSYaudQ@z> Andrew Cagney wrote: > > From M3: > Excellent suggestion. Thanks. These is also from Object Pascal, so they are easily recognizable. It has to be the try ... except construct though. The try...finally has a different semantics. Fernando > Try Except: > http://www.research.compaq.com/SRC/m3defn/html/tryexcept.html > > TRY > Body ... > EXCEPT > exception => action; ... > END > > Try Finally: > http://www.research.compaq.com/SRC/m3defn/html/tryfinally.html > > TRY > statement 1; > FINALLY > statement 2; > END > > might give you ideas and potential semantic issues. eg > http://www.research.compaq.com/SRC/m3defn/html/exit.html > > Another key word might be trap? > > Andrew -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9