From: Adam Beneschan <adam@irvine.com>
Subject: Re: loop on character
Date: Wed, 8 Oct 2008 14:42:46 -0700 (PDT)
Date: 2008-10-08T14:42:46-07:00 [thread overview]
Message-ID: <401e3123-ddaf-4869-a58f-a36eca44ac8a@l33g2000pri.googlegroups.com> (raw)
In-Reply-To: Xns9B31EC66E2B01BerndSpechgmxcom@151.189.20.10
On Oct 8, 2:26 pm, Bernd.Spe...@gmx.com (Bernd Specht) wrote:
> Although I've worked with Ada for a few years, I've got a problem now that
> looks a bit like a beginners problem to me. Can someone help me?
>
> I wrote a statement like this:
>
> for c in '0'..'9'
> loop
> ...
> end loop;
>
> and the compiler says "ambigous character literals (could be
> Wide_Character)"
>
> what would be the correct way to write this?
for C in Character range '0' .. '9' loop
-- Adam
next prev parent reply other threads:[~2008-10-08 21:42 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox