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