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.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a0c:fad0:: with SMTP id p16mr13132506qvo.3.1634325587721; Fri, 15 Oct 2021 12:19:47 -0700 (PDT) X-Received: by 2002:a25:7e46:: with SMTP id z67mr14556037ybc.166.1634325587488; Fri, 15 Oct 2021 12:19:47 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!feeder1.cambriumusenet.nl!feed.tweak.nl!209.85.160.216.MISMATCH!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 12:19:47 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=92.40.203.48; posting-account=5K6RMgoAAADQeoHIOMi2dg5aYc0IVxGi NNTP-Posting-Host: 92.40.203.48 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4462bbfe-f4f3-4ca1-8684-36fde9b19fden@googlegroups.com> Subject: Re: Code flow control From: Kevin Chadwick Injection-Date: Fri, 15 Oct 2021 19:19:47 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63012 List-Id: On Friday, 15 October 2021 at 19:03:20 UTC+1, Dmitry A. Kazakov wrote: > On 2021-10-15 19:48, J-P. Rosen wrote: > > > Some people reserve exceptions for signalling errors. I regard them as a > > way to handle "exceptional" situations, i.e. when the normal flow of > > control cannot continue. For example, in a deep recursive search, they > > are handy to stop the recursion and go back to top level when you have > > found what you were looking for. Some would disagree with that. > I strongly believe that this is the only consistent way to treat exceptions. If I am not mistaken.The ada 95 style guide states that you should not end a loop with an exception, on purpose.