From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3fa706d5ad40e71c X-Google-Attributes: gid103376,public From: blaak@mda.ca (Ray Blaak) Subject: Re: Help with Exceptions! (fwd) Date: 1996/05/08 Message-ID: <4mqhj3$sp7@map.mda.ca>#1/1 X-Deja-AN: 153753721 references: content-type: text/plain; charset=us-ascii organization: Macdonald Dettwiler & Associates mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-05-08T00:00:00+00:00 List-Id: Actually, the gotos and extra returns are unnecessary, for the natural control flow will accomplish the same thing: procedure test is x:integer; begin begin x := 10000000; exception when Constraint_Error => null; end; begin x := 3; exception when Constraint_Error => null; end; end test; Dave writes: >procedure test is > x:integer ; >begin > begin > x := 10000000 ; > exception > when CONSTRAINT_ERROR => > goto Next_Block ; > end ; ><> > begin > x := 3 ; > exception > when CONSTRAINT_ERROR => > RETURN ; > end ; > RETURN ; >end test; Cheers, Ray Blaak blaak@mda.ca