From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: loop on character
Date: Wed, 08 Oct 2008 18:50:25 -0400
Date: 2008-10-08T18:50:25-04:00 [thread overview]
Message-ID: <wccvdw2r9am.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: Xns9B31EC66E2B01BerndSpechgmxcom@151.189.20.10
Bernd.Specht@gmx.com (Bernd Specht) writes:
> low : Character := '0';
> high : Character := '9';
>
> for c in low .. high
> loop
> ...
> end loop;
If you do it that way, low and high should be constant.
Others have suggested "for C in Character...",
which is probably what you want.
Here's another variation:
subtype Digit is Character range '0'..'9';
for C in Digit loop...
- Bob
prev parent reply other threads:[~2008-10-08 22:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 21:26 loop on character Bernd Specht
2008-10-08 21:42 ` Adam Beneschan
2008-10-08 22:45 ` Jeffrey R. Carter
2008-10-09 19:13 ` Jerry
2008-10-09 22:18 ` Adam Beneschan
2008-10-08 22:50 ` Robert A Duff [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