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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5d489a63e16a038 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!k30g2000hse.googlegroups.com!not-for-mail From: george.priv@gmail.com Newsgroups: comp.lang.ada Subject: Re: loop variable Date: Sun, 28 Sep 2008 20:20:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 151.196.71.114 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1222658451 6568 127.0.0.1 (29 Sep 2008 03:20:51 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 29 Sep 2008 03:20:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k30g2000hse.googlegroups.com; posting-host=151.196.71.114; posting-account=VnNb3AoAAACTpRtCcTrcjmPX7cs92k1Q User-Agent: G2/1.0 X-HTTP-Via: 1.1 SPARKS X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.2) Gecko/2008091620 Firefox/3.0.2,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:2127 Date: 2008-09-28T20:20:50-07:00 List-Id: On Sep 28, 9:54=A0pm, jedivaughn wrote: > What data_type is a loop variable > as an example > for i in 1..10 > what data type is i? > and can I convert it to an integer? > > -John In your example I will be Standard.Integer. In case: type Weekday_Type is (sun, mon, tue, wed, thu, fri, sat); ... for I in Weekday_Type'Range loop .or. for I in mon..fri loop it will be Weekday_Type. See AARM 5.5: http://www.adaic.com/standards/05aa= rm/html/AA-5-5.html George