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,9ed2b1e061ff269d,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nobody Newsgroups: comp.lang.ada Subject: Subtypes boundaries Date: 14 Jun 2010 20:25:48 GMT Message-ID: <87nhicFa1kU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net IMEzcI6dg8TNXCPQOe1ZCQnHdAqvbmjtvtks4HzjobsR/V1vyr Cancel-Lock: sha1:e9lD7SoBnmsOkuzWijZKyB8ziQU= User-Agent: Pan/0.133 (House of Butterflies) Xref: g2news1.google.com comp.lang.ada:11725 Date: 2010-06-14T20:25:48+00:00 List-Id: Hi All, I am new to Ada and found the following declaration in my text book: type ASTERIX is range -5_000..+10_000; subtype IDEFIX is range 1..20_000; How can it be that the subtype IDEFIX can exceed the boundaries (20_000 compared to 10_000) of the superordinated type ASTERIX? If it is a subtype its boundaries should be within the boundaries of the type it is derived from. Did I get something wrong? Regards Nobody