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 17:11:20 +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="24271"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MQa0Kf/aWvPjHtFetT8xZIM/9ZcjdsyU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (darwin) Cancel-Lock: sha1:3PcvsOJVrMZHZPbf5srUEiGYxlc= sha1:VxJ0PZEPb8qBRlY+c/LSi7WJVZg= Xref: reader02.eternal-september.org comp.lang.ada:49870 Date: 2018-01-11T17:11:20+00:00 List-Id: "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.