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 X-Google-Attributes: gid103376,public From: dewarr@my-dejanews.com Subject: Re: How to implement a continue statement in Ada? Date: 1998/09/03 Message-ID: <6skp71$244$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 387303349 References: <35EA8153.7BFC91E3@physics.purdue.edu> <6shvd4$5v9$1@usenet46.supernews.com> <35ECD5FD.5F53@atlas.otago.ac.nz> X-Http-Proxy: 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Sep 03 00:51:45 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/2.02 (OS/2; I) Date: 1998-09-03T00:00:00+00:00 List-Id: In article <35ECD5FD.5F53@atlas.otago.ac.nz>, ok@atlas.otago.ac.nz wrote: > alan walkington wrote: > > > > Robert T. Sagris wrote in message <35EA8153.7BFC91E3@physics.purdue.edu>... > > >I was wondering if there is a general way of implementing > > >the behavior of C's continue statement in Ada. > > > > As you have seen from the responses, the answer is NO. > > Clearly I have missed some responses. > What exactly is wrong with > - Robert Dewar's suggestion of using 'goto', or > - my suggestion of using a nested named block and named exits? > Both suggestions "implement the behaviour", which is skipping the > rest of the body of the loop. > Is it the fact that you have to invent names, > which you do not in C? > Is it the fact that these translations are _too_ powerful, > handling multi-level exit, which the C version does not? > Quite a bit is wrong with "my suggestion of using a nested named block and named exit", namely neither Ada 95 nor Ada 83 permit exiting from a named block! -----== Posted via Deja News, The Leader in Internet Discussion ==----- http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum