comp.lang.ada
 help / color / mirror / Atom feed
From: dewarr@my-dejanews.com
Subject: Re: How to implement a continue statement in Ada?
Date: 1998/09/03
Date: 1998-09-03T00:00:00+00:00	[thread overview]
Message-ID: <6skp71$244$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 35ECD5FD.5F53@atlas.otago.ac.nz

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




  parent reply	other threads:[~1998-09-03  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <35EA8153.7BFC91E3@physics.purdue.edu>
1998-08-31  0:00 ` How to implement a continue statement in Ada? Norman H. Cohen
1998-08-31  0:00 ` Robert I. Eachus
1998-08-31  0:00   ` Robert T. Sagris
1998-09-01  0:00     ` Matthew Heaney
1998-09-01  0:00 ` alan walkington
1998-09-02  0:00   ` Dr Richard A. O'Keefe
1998-09-02  0:00     ` Matthew Heaney
1998-09-02  0:00     ` alan walkington
1998-09-03  0:00     ` dewarr [this message]
1998-08-31  0:00 Robert T. Sagris
1998-09-01  0:00 ` dewarr
1998-09-01  0:00 ` Dr Richard A. O'Keefe
1998-09-01  0:00   ` dewarr
1998-09-03  0:00     ` Dr Richard A. O'Keefe
1998-09-03  0:00       ` dennison
  -- strict thread matches above, loose matches on Subject: below --
2000-02-08  0:00 Oliver Kellogg
2000-02-08  0:00 ` David Starner
2000-02-08  0:00   ` Aidan Skinner
2000-02-09  0:00     ` Ted Dennison
2000-02-12  0:00       ` Jeff Carter
2000-02-14  0:00       ` Oliver Kellogg
2000-02-09  0:00     ` David Starner
2000-02-10  0:00       ` Aidan Skinner
2000-02-08  0:00 ` Ted Dennison
2000-02-09  0:00   ` Roger Barnett
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox