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: Valid Attribute and Unchecked Conversion Date: 1996/10/07 Message-ID: #1/1 X-Deja-AN: 187328731 references: organization: New York University newsgroups: comp.lang.ada Date: 1996-10-07T00:00:00+00:00 List-Id: Keith says "For example, the language could have defined two additional attributes, analagous to 'Pos and 'Val, but operating on the internal representation of an enumeration type. If the argument is an invalid representation, simply raise Constraint_Error. GNAT provides half of this with its 'Enum_Rep attribute." The intention in Ada 95 is that both operations are achievbable using unchecked conversion. It is a bug in the RM if this is not the case. However, in practice, of coruse this works, no matter what it says in the RM, so this point can be left moot without having any pragmatic effect.