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: Simon Wright Newsgroups: comp.lang.ada Subject: Re: stopping a loop iteration without exiting it Date: Thu, 11 Jan 2018 18:09:56 +0000 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 Injection-Info: reader02.eternal-september.org; posting-host="d99b717c7b21d6ab385a3290e59ef9b7"; logging-data="20701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GrcK9n1A+Z4RWewheS8ArdhLCHs+EKOs=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:zm3EHTqAvi8QhT55y7oUEKB9oUg= sha1:0UVgiKxQXroD626LZX/2FnLA91U= Xref: reader02.eternal-september.org comp.lang.ada:49873 Date: 2018-01-11T18:09:56+00:00 List-Id: "Dmitry A. Kazakov" writes: > On 2018-01-11 18:11, Simon Wright wrote: >> "Dmitry A. Kazakov" writes: >> >>>> L: >>>> [for|while...] loop >>>> ... >>>> goto L; >>>> ... >>>> end loop L; >>>> >>>> Both outer Ls are part of what indicates the beginning >>>> and end of the loop, resp. So, as others said in this thread, >>>> there is syntactical ambiguity when using L with goto. >>>> The meaning of the goto L is not clear or agreed upon >>>> either, as readers here have said. >>> >>> Substitute "exit" for "goto" and reread your text. >> >> Sorry, but those are not the same. "exit" clearly means to leave the >> loop; there's no way it could be interpreted as restarting the loop >> completely. "goto" on the other hand, now I see it laid out like that, >> certainly has the possibility of confusion. > > If there is no way to interpret exit as exit before the loop, then > there is none for goto and conversely. I lost track of the point you're trying to make, so I'll leave it there.