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: 185794507 references: <01bba947$d8990620$188371a5@dhoossr.iquest.com> organization: New York University newsgroups: comp.lang.ada Date: 1996-09-27T00:00:00+00:00 List-Id: Matthew says ""If the size of a type of a first named subtype T has been specified by a length clause, the T'Size yields the specified size, AND THE SIZE OF EVERY SUBTYPE OF T IS ALSO THIS VALUE [my emphasis]."" This is an Ada 83 AI. For whatever reasons, the Ada 95 RM does not follow this AI, or permit compilers to follow it. RM 95 requires that subtypes have a different size from the first subtype if the range is static and a smaller type is possible.