comp.lang.ada
 help / color / mirror / Atom feed
From: mfeldman@seas.gwu.edu (Michael Feldman)
Subject: Re: loop step function
Date: 1997/01/27
Date: 1997-01-27T00:00:00+00:00	[thread overview]
Message-ID: <5cjv15$gbt@felix.seas.gwu.edu> (raw)
In-Reply-To: 19970127125200.HAA26735@ladder01.news.aol.com


In article <19970127125200.HAA26735@ladder01.news.aol.com>,
 <johnherro@aol.com> wrote:

[snip]

>type CLA_Message_Type is (Ask_For _Help, Give_Help, Discuss_Ada,
>Please_Do_My_Homework, Flame, Flame_The_Flamer);
>
>Now in Ada you could write
>
>for L in Ask_For_Help .. Flame loop

or even (more to the point)

for L in CLA_Message_Type loop

or even

for L in reverse CLA_Message_Type loop

so if the type CLA_Message_Type changes in maintenance, your loop
code doesn't change a bit.

I think this makes up for the lack of a step size. Just my two cents.:-)

Mike Feldman




      reply	other threads:[~1997-01-27  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-24  0:00 loop step function Paul Van Bellinghen
1997-01-25  0:00 ` Larry Kilgallen
1997-01-29  0:00   ` Ted Dennison
1997-01-30  0:00     ` Robert Dewar
1997-01-25  0:00 ` Geert Bosch
1997-01-25  0:00 ` Matthew Heaney
1997-01-27  0:00   ` johnherro
1997-01-27  0:00     ` Michael Feldman [this message]
replies disabled

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