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!postnews.google.com!l33g2000pri.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: loop on character Date: Thu, 9 Oct 2008 15:18:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <1a232bc8-f1de-4a68-9771-90129463c992@l33g2000pri.googlegroups.com> References: <401e3123-ddaf-4869-a58f-a36eca44ac8a@l33g2000pri.googlegroups.com> <534b9ac0-6720-4f40-b1e0-bd5d45299d2a@l33g2000pri.googlegroups.com> 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 1223590719 11027 127.0.0.1 (9 Oct 2008 22:18:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 9 Oct 2008 22:18:39 +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: g2news1.google.com comp.lang.ada:2307 Date: 2008-10-09T15:18:39-07:00 List-Id: On Oct 9, 12:13 pm, Jerry wrote: > On Oct 8, 2:42 pm, Adam Beneschan wrote: > > > > > for C in Character range '0' .. '9' loop > > > -- Adam > > Does this construction have a name? By "this construction" I mean the > presence of Character in the for statement. It doesn't quite have a name of its own. "Character range '0'..'9'" is a discrete_subtype_definition, but it would still be that without the type name. Going further, this form of discrete_subtype_definition is a discrete_subtype_indication, which is just a kind of subtype_indication, which is a type or subtype name optionally followed by a constraint. See 5.5(4), 3.6(6), 3.2.2(3). Note the *optionally*: you can write a loop providing just a type (subtype) name without the range constraint---see Bob's response for an example. > Presumably other types can > be included at that position. Yes, but only discrete types (integer or enumeration). -- Adam