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: bobduff@world.std.com (Robert A Duff) Subject: Re: Rules for Representation of Subtypes Date: 1996/10/02 Message-ID: #1/1 X-Deja-AN: 186736869 references: <1996Sep29.082143.1@eisner> <325155A5.2E50@lmtas.lmco.com> organization: The World Public Access UNIX, Brookline, MA newsgroups: comp.lang.ada Date: 1996-10-02T00:00:00+00:00 List-Id: In article <325155A5.2E50@lmtas.lmco.com>, Ken Garlington wrote: >I seem to remember some AI about using unchecked_conversion when the >sizes of X and Y are different. Maybe it's compiler dependent, but I >thought you were at least guaranteed that the unchecked_conversion of Y >would _fit_ into the space allocated for X, although of course Y might >be outside the range of X. In that case, X'Valid should work, shouldn't >it? No. See 13.9.1(12). Nothing, not even 'Valid, can be assumed to work, if the execution is erroneous. - Bob