From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,11c5f8935404ea1,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!newshub.sdsu.edu!nntpserver.com!zeus.nntpserver.com!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Newsgroups: comp.lang.ada Subject: loop on character From: Bernd.Specht@gmx.com (Bernd Specht) Organization: No company Message-ID: User-Agent: Xnews/4.05.03 Date: 08 Oct 2008 21:26:39 GMT NNTP-Posting-Date: 08 Oct 2008 23:26:39 CEST NNTP-Posting-Host: db919ffa.newsspool3.arcor-online.net X-Trace: DXC=?ge]EG]0J3c:i=48;n?Z:`McF=Q^Z^V3h4Fo<]lROoRa8kF@`9g_e7m^mVB2U9HaR9boY;9DVCm X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8009 Date: 2008-10-08T23:26:39+02:00 List-Id: 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;