comp.lang.ada
 help / color / mirror / Atom feed
* loop on character
@ 2008-10-08 21:26 Bernd Specht
  2008-10-08 21:42 ` Adam Beneschan
  2008-10-08 22:50 ` Robert A Duff
  0 siblings, 2 replies; 6+ messages in thread
From: Bernd Specht @ 2008-10-08 21:26 UTC (permalink / 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;




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-09 22:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox