From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:5916:: with SMTP id 22mr15911108qty.158.1634333430715; Fri, 15 Oct 2021 14:30:30 -0700 (PDT) X-Received: by 2002:a25:6106:: with SMTP id v6mr15327128ybb.531.1634333430400; Fri, 15 Oct 2021 14:30:30 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 15 Oct 2021 14:30:30 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2a00:23c0:f583:ec01:ad07:1c39:95d:9ca2; posting-account=5K6RMgoAAADQeoHIOMi2dg5aYc0IVxGi NNTP-Posting-Host: 2a00:23c0:f583:ec01:ad07:1c39:95d:9ca2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <23031592-5a56-4d56-bda7-34877588802dn@googlegroups.com> Subject: Re: Code flow control From: Kevin Chadwick Injection-Date: Fri, 15 Oct 2021 21:30:30 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:63014 List-Id: On Friday, 15 October 2021 at 21:02:49 UTC+1, G.B. wrote: > On 15.10.21 20:03, Dmitry A. Kazakov wrote:=20 > > On 2021-10-15 19:48, J-P. Rosen wrote:=20 > >=20 > >> Some people reserve exceptions for signalling errors. I regard them as= a way to handle "exceptional" situations, i.e. when the normal flow of con= trol cannot continue. For example, in a deep recursive search, they are han= dy to stop the recursion and go back to top level when you have found what = you were looking for. Some would disagree with that.=20 > >=20 > > I strongly believe that this is the only consistent way to treat except= ions. > Once found, pass the result to the party that needs it.=20 > Then, finish the computational task that found the result.=20 > Is there anything besides exceptions to do that, and orderly? I believe the ada 95 style guide recommended a standard goto?