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.4 required=5.0 tests=BAYES_50,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6a85e71d2c330ab X-Google-Attributes: gid103376,public From: Bill Greene Subject: Re: checking a loop execution Date: 2000/04/24 Message-ID: <3904AD74.7103@Ganymede.com>#1/1 X-Deja-AN: 615111419 Content-Transfer-Encoding: 7bit References: <8dl76u$etf$1@nnrp1.deja.com> <38fece05.0@silver.truman.edu> <8do7b2$p8h$1@nnrp1.deja.com> <3901fc68.0@silver.truman.edu> Content-Type: text/plain; charset=us-ascii X-Trace: 24 Apr 2000 16:23:49 -0500, proxy.ganymede.com Organization: Ganymede Software, Inc MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-24T00:00:00+00:00 List-Id: 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