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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,38730e01f356adfa,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!i39g2000cwa.googlegroups.com!not-for-mail From: ada_student@yahoo.com Newsgroups: comp.lang.ada Subject: types and subtypes Date: 13 Mar 2006 04:07:57 -0800 Organization: http://groups.google.com Message-ID: <1142251677.837212.109000@i39g2000cwa.googlegroups.com> NNTP-Posting-Host: 202.137.223.36 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1142251683 10573 127.0.0.1 (13 Mar 2006 12:08:03 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 13 Mar 2006 12:08:03 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50215),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i39g2000cwa.googlegroups.com; posting-host=202.137.223.36; posting-account=3Mg56g0AAACAuN289Qo7AHsl3oqAJBS- Xref: g2news1.google.com comp.lang.ada:3335 Date: 2006-03-13T04:07:57-08:00 List-Id: Given, subtype Positive is Integer range 1 .. Integer'Last; type String is (Positive range <>) of Character; the following should be illegal, subtype Count_To_Ten is Integer range 1 .. 10; subtype Ten_Characters is String (Count_to_Ten); and the following should be legal, instead subtype Count_To_Ten is Positive range 1 .. 10; subtype Ten_Characters is String (Count_to_Ten); Why is Count_To_Ten allowed to be an Integer even though the indices of String are declared as Positives?