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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b4d226f2bb5682b1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-28 13:52:06 PST Path: archiver1.google.com!newsfeed.google.com!postnews1.google.com!not-for-mail From: raycr@yahoo.com (Raymond Rawa) Newsgroups: comp.lang.ada Subject: Do subtypes inherit the attributes of the base type? Date: 28 Aug 2001 13:52:06 -0700 Organization: http://groups.google.com/ Message-ID: <6062b16c.0108281252.1b436472@posting.google.com> NNTP-Posting-Host: 12.13.248.4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 999031926 20263 127.0.0.1 (28 Aug 2001 20:52:06 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 28 Aug 2001 20:52:06 GMT Xref: archiver1.google.com comp.lang.ada:12534 Date: 2001-08-28T20:52:06+00:00 List-Id: I'm migrating my code from VADS Ada83 to GHS Ada95 and I've got a type that may be giving me trouble. type Eng_Oil_Level_Calculation_Type is delta 1.0/2.0**10 range (System.Min_Int / 2) * 1.0/2.0**10 .. (System.Max_Int / 2) * 1.0/2.0**10; for Eng_Oil_Level_Calculation_Type'small use 1.0/2.0**10; subtype Eng_Oil_Level_Type is Eng_Oil_Level_Calculation_Type range -1.0..0.9990234375; The legacy software is assuming that the subtype has the same 'small value as the base type. Is this a safe assumption?