comp.lang.ada
 help / color / mirror / Atom feed
From: Oliver Kellogg <okellogg@my-deja.com>
Subject: Re: How to implement a continue statement in Ada?
Date: 2000/02/14
Date: 2000-02-14T00:00:00+00:00	[thread overview]
Message-ID: <889g4s$s4v$1@nnrp1.deja.com> (raw)
In-Reply-To: 87s92d$lj1$1@nnrp1.deja.com

In article <87s92d$lj1$1@nnrp1.deja.com>,
  Ted Dennison <dennison@telepath.com> wrote:

> Given that such workarounds (hacks) exist, why not put continue
> capability in Ada 0X by allowing the "exit" statement to exit
> outside of a begin..end block? The fact that you can't do this
> is actually a common confusion for newbies anyway.

A agree wholeheartedly. This should apply to both the
exit and the continue statement.

However, I still think adding a "continue" statement
to Ada is a good idea.

"continue" is complementary to "exit" in nature
and the same syntax rules should apply to both.
E.g. the continue statement could take an optional
loop_designator (just like exit) to make possible
continuing to outer loops in the case of nested loops.

Oliver M. Kellogg
-- okellogg at freenet dot de



Sent via Deja.com http://www.deja.com/
Before you buy.




  parent reply	other threads:[~2000-02-14  0:00 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-08  0:00 How to implement a continue statement in Ada? Oliver Kellogg
2000-02-08  0:00 ` Ted Dennison
2000-02-09  0:00   ` Roger Barnett
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 [this message]
2000-02-09  0:00     ` David Starner
2000-02-10  0:00       ` Aidan Skinner
2000-02-12  0:00       ` Character vs. String comparisons (was: Re: How to implement a continue statement in Ada?) Jeff Carter
2000-02-12  0:00         ` David Starner
  -- strict thread matches above, loose matches on Subject: below --
1998-08-31  0:00 How to implement a continue statement in Ada? Robert T. Sagris
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
1998-09-01  0:00 ` dewarr
     [not found] <35EA8153.7BFC91E3@physics.purdue.edu>
1998-08-31  0:00 ` 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
replies disabled

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