From: Bernd.Specht@gmx.com (Bernd Specht)
Subject: loop on character
Date: 08 Oct 2008 21:26:39 GMT
Date: 2008-10-08T23:26:39+02:00 [thread overview]
Message-ID: <Xns9B31EC66E2B01BerndSpechgmxcom@151.189.20.10> (raw)
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?
Ok, I can declare some variables first, but I think there must be a better
way.
low : Character := '0';
high : Character := '9';
for c in low .. high
loop
...
end loop;
next reply other threads:[~2008-10-08 21:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 21:26 Bernd Specht [this message]
2008-10-08 21:42 ` loop on character 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox