comp.lang.ada
 help / color / mirror / Atom feed
From: "George F.Rice" <rice@mmc1001.lfwc.lockheed.com>
Subject: Re: Help with Exceptions!
Date: 1996/05/10
Date: 1996-05-10T00:00:00+00:00	[thread overview]
Message-ID: <31935435.3C00@mmc1001.lfwc.lockheed.com> (raw)
In-Reply-To: 318F94D9.35AB@io.com


Dave Jones wrote:

: procedure test is
:         x:integer ;
: begin
:         begin
:                 x := 10000000 ;
:         exception
:                 when CONSTRAINT_ERROR =>
:                         goto Next_Block ;
:         end ;
: <<Next_Block>>
:         begin
:                 x := 3 ;
:         exception
:                 when CONSTRAINT_ERROR =>
:                         RETURN ;
:         end ;
:         RETURN ;
: end test;

The goto is unnecessary; when the exception handler completes,
control will pass to the next statement anyway.

In general, the lack of a RESUME or RESUME NEXT could be considered
a feature rather than an omission.  Basic (my first language) doesn't
support structured exception handling like Ada or C++, an unfortunate 
omission on its part.

-- 
George

Quality means never having to use a sorry tool (tm)




  parent reply	other threads:[~1996-05-10  0:00 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-07  0:00 Help with Exceptions! Robert Gelb
1996-05-07  0:00 ` Steve Howard
1996-05-07  0:00   ` Robert Dewar
     [not found]   ` <4mqio5$a8b@news.sanders.lockheed.com>
1996-05-09  0:00     ` Robert L. Spooner, AD3K
1996-05-10  0:00   ` Jon S Anthony
1996-05-10  0:00     ` Robert A Duff
1996-05-07  0:00 ` John Herro
1996-05-07  0:00 ` Vincent Smeets
     [not found] ` <318F94D9.35AB@io.com>
1996-05-10  0:00   ` George F.Rice [this message]
1996-05-13  0:00     ` Dave Jones
1996-05-13  0:00   ` Robert I. Eachus
1996-05-14  0:00     ` John Herro
1996-05-14  0:00       ` Robert I. Eachus
1996-05-14  0:00   ` Theodore E. Dennison
1996-05-14  0:00     ` Robert A Duff
1996-05-14  0:00 ` Michel Gauthier
1996-05-14  0:00   ` Robert A Duff
1996-05-15  0:00     ` Norman H. Cohen
1996-05-15  0:00       ` Robert A Duff
1996-05-15  0:00 ` Michel Gauthier
1996-05-16  0:00 ` Jon S Anthony
1996-05-16  0:00 ` Jon S Anthony
1996-05-16  0:00   ` Robert A Duff
  -- strict thread matches above, loose matches on Subject: below --
1996-05-09  0:00 tmoran
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox