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: g2news1.google.com!news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!cyclone1.gnilink.net!gnilink.net!wns13feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: loop on character References: <401e3123-ddaf-4869-a58f-a36eca44ac8a@l33g2000pri.googlegroups.com> In-Reply-To: <401e3123-ddaf-4869-a58f-a36eca44ac8a@l33g2000pri.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1223505945 12.201.97.213 (Wed, 08 Oct 2008 22:45:45 GMT) NNTP-Posting-Date: Wed, 08 Oct 2008 22:45:45 GMT Organization: AT&T ASP.att.net Date: Wed, 08 Oct 2008 22:45:45 GMT Xref: g2news1.google.com comp.lang.ada:2284 Date: 2008-10-08T22:45:45+00:00 List-Id: Adam Beneschan wrote: > > for C in Character range '0' .. '9' loop You can also do for C in Character'('0') .. '9' loop which gives an interesting, if difficult to read, sequence of 3 apostrophes separated by other characters. As long as the compiler knows the type of at least one of the literals it will be happy. As the OP pointed out, making at least one of them an object will do it. If he wants the literals in the loop statement, "Character range" would be my choice. -- Jeff Carter "Hello! Smelly English K...niggets." Monty Python & the Holy Grail 08