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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: stopping a loop iteration without exiting it Date: Fri, 12 Jan 2018 09:22:43 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <81971548-23c9-4927-a6a8-6f0f1dba896b@googlegroups.com> <5879f25e-c825-4c84-a219-293d1508b33d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 12 Jan 2018 09:22:43 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="6a118acc6bbc80268369c6b412f01023"; logging-data="19972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UBcGZhb8ufEf0B5iXR8BwmLS3XjQN5Z0=" User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:xb0tCjLX7pnm5jnN93CryJU5FpQ= sha1:jXy1YKz+x5/1NIRQK+KavGFNuNM= Xref: reader02.eternal-september.org comp.lang.ada:49880 Date: 2018-01-12T09:22:43+00:00 List-Id: Dmitry A. Kazakov wrote: > On 11/01/2018 21:54, G. B. wrote: >> Dmitry A. Kazakov wrote: >> >>>>> I have no idea what this is supposed to mean. >>>> >>>> >>>> L: >>>> [for|while...] loop >>>> ... >>>> goto L; >>>> ... >>>> end loop L; >> loop is intended for the opposite, for when it’s not over yet. >> For when it’s done again. “exit” cannot mean that, but the >> hypothesized goto can. > > 1. "exit" can: > > exit when ; > > When condition evaluates false the loop continues. Well, no, the loop’s body continues. Doing so, it doesn’t trigger another iteration, unlike “goto Continue”, or “goto L”. It doesn’t drive. Hence the following doesn’t apply to the case in point: > 2. "goto" cannot in any deeper sense than "exit" does because it is not > "goto" which would drive the loop in this case. >> Actually, “if” itself cannot directly make the program >> iterate, unlike “goto”. > > Not in the case at hand. I’ll let your new case rest in your hands. > P.S. Take if + a subroutine call. That gives recursion. Then following > your flawed logic either if or loop is bad. Indeed this is a functionist’s main tenet. But then, if CALL and COND do not suffice, i.e., if they need an additional goto-like evaluation driver, then the functional language is broken.