comp.lang.ada
 help / color / mirror / Atom feed
From: Bill Greene <wrg@Ganymede.com>
Subject: Re: checking a loop execution
Date: 2000/04/24
Date: 2000-04-24T00:00:00+00:00	[thread overview]
Message-ID: <3904AD74.7103@Ganymede.com> (raw)
In-Reply-To: 3901fc68.0@silver.truman.edu

Chad R. Meiners wrote:
> 
> ....  However, the use of a for loop sets up the expectation that the loop
> is going to execute a predetermined amount of times.  Therefore putting
> other exit conditions inside of a for loop is misleading to the reader.  ...

My expectation would be that "for I in 1 .. N loop" executes *at most* N
times.

-- 
William R. Greene                              1100 Perimeter Park Drive
Ganymede Software, Inc.                                        Suite 104
http://www.ganymede.com                       Morrisville, NC  27560 USA
Phone: (919) 469-0997, ext. 280                      Fax: (919) 469-5553





  parent reply	other threads:[~2000-04-24  0:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-19  0:00 checking a loop execution pumilia
2000-04-19  0:00 ` DuckE
2000-04-20  0:00 ` tmoran
2000-04-20  0:00   ` Charles Hixson
2000-04-20  0:00 ` Andreas Schulz
2000-04-20  0:00 ` chad
2000-04-21  0:00   ` Robert Dewar
2000-04-22  0:00     ` Chad R. Meiners
2000-04-23  0:00       ` Robert Dewar
2000-04-24  0:00         ` Ehud Lamm
2000-04-24  0:00           ` Ehud Lamm
2000-04-24  0:00       ` Bill Greene [this message]
2000-04-21  0:00   ` Robert Dewar
2000-04-20  0:00 ` Geoff Bull
replies disabled

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