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-7-bit Path: g2news1.google.com!news3.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Date: Mon, 29 Sep 2008 06:38:58 -0400 From: "Peter C. Chapin" User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: loop variable References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48e0b042$0$26352$4d3efbfe@news.sover.net> Organization: SoVerNet (sover.net) NNTP-Posting-Host: 08955d0c.news.sover.net X-Trace: DXC=V13k<8U[B:mf0OR[ak:C_fK6_LM2JZB_cUDcAmRE8`jo3?@`i3kGa5kNjG@l93XA?bf5aRU`LEj;n X-Complaints-To: abuse@sover.net Xref: g2news1.google.com comp.lang.ada:2132 Date: 2008-09-29T06:38:58-04:00 List-Id: jedivaughn wrote: > What data_type is a loop variable > as an example > for i in 1..10 > what data type is i? The subtype of a loop variable is the subtype used to define the loop's range. Something like '1..10' is shorthand for 'Integer range 1..10' and so in your example I has type Integer. However, I echo the comments Georg Bauhaus made in his post: be careful with conversions. They often (not always) mean you haven't defined your types properly or that you haven't declared your variables with the most appropriate types. Peter