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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,45a9122ddf5fcf5 X-Google-Attributes: gid103376,public From: dewar@schonberg.cs.nyu.edu (Robert Dewar) Subject: Re: Rules for Representation of Subtypes Date: 1996/09/27 Message-ID: #1/1 X-Deja-AN: 185792672 references: organization: New York University newsgroups: comp.lang.ada Date: 1996-09-27T00:00:00+00:00 List-Id: Bob said "I'm not sure if I'm the Bob being addressed, but... I think your interpretation is correct. However, in Ada 95, such a rule can't work. Consider: type T is range 0..15; for T'Size use 4; subtype Bigger is T'Base range -15..15; Clearly, Bigger'Size cannot be 4. " This is a baby and bathwater case! Yes, of course the rule cannot apply to the unusual case of Bigger here, but that is NOT a sufficient reason to throw out the entire rule, causing incompatibilities. In GNAT, we regard Bigger as a subtpye of the base type of T, not a subtype of T for the purposes of the size ingheritance rules that apply to object size (which is like the old Ada 83 size).