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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,11c5f8935404ea1 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!l33g2000pri.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: loop on character Date: Wed, 8 Oct 2008 14:42:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <401e3123-ddaf-4869-a58f-a36eca44ac8a@l33g2000pri.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1223502166 9883 127.0.0.1 (8 Oct 2008 21:42:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 8 Oct 2008 21:42:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l33g2000pri.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8010 Date: 2008-10-08T14:42:46-07:00 List-Id: 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