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,d0452dbe16ac0df4 X-Google-Attributes: gid103376,public From: "Samuel A. Mize" Subject: Re: ObjectAda vs Gnat -- bugs Date: 1997/05/15 Message-ID: <337B4D90.167E@magellan.bgm.link.com>#1/1 X-Deja-AN: 241781996 References: <5lf6ka$nbg@service.polymtl.ca> Organization: PSI Public Usenet Link Newsgroups: comp.lang.ada Date: 1997-05-15T00:00:00+00:00 List-Id: granger wrote: >how can I have the enumeration values Gray* and > Grey* of the same type or subtype with the same internal value ? I noted in another message that enumeration literals are functions, so he can rename them. Another, possibly simpler option is to define constant objects with the values you want: type Color_Type is (Gray0); Gray1: constant Color_Type := Gray0; Sam Mize -- Samuel Mize (817) 619-8622 "Team Ada" -- Hughes Training Inc. PO Box 6171 m/s 400, Arlington TX 76005