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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2cb6c27047140e0,start X-Google-Attributes: gid103376,public From: "Robert T. Sagris" Subject: How to implement a continue statement in Ada? Date: 1998/08/31 Message-ID: <35EA816A.E11FEA85@physics.purdue.edu>#1/1 X-Deja-AN: 386415853 Content-Transfer-Encoding: 7bit Organization: Purdue University Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-08-31T00:00:00+00:00 List-Id: I was wondering if there is a general way of implementing the behavior of C's continue statement in Ada. If at all possible without using a goto statement. Basically what I am asking: Is there a way to skip the current iteration of a loop but continue with the normal progression of the loop. In C, I could write: i = 0; while (i < 10) { if (a[i] == 0) { i++; continue; } a[i] = x / a[i]; i++; } Thanks for any information you can give me. Robbi Sagris