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,a00ff2b882a06fda X-Google-Attributes: gid103376,public From: Al Johnston Subject: Re: HELP: renames and enum values Date: 2000/04/11 Message-ID: <38F3461B.59952CA4@mindspring.com>#1/1 X-Deja-AN: 609686357 Content-Transfer-Encoding: 7bit References: <38ECE0EB.4BD4A53E@mindspring.com> <38EE2019.4C91075D@Raytheon.com> <38EE494D.DDB9CE9@mindspring.com> <8cp1hd$3so$1@nnrp1.deja.com> X-Accept-Language: en X-Server-Date: 11 Apr 2000 15:37:09 GMT Content-Type: text/plain; charset=us-ascii Organization: MindSpring Enterprises Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-11T15:37:09+00:00 List-Id: > > What I really want here is a rename of a data type, > > which doesn't seem to be available in ada... > > subtype x is y; > > why isn't that good enough for renaming purposes???? S Harris gave the "correct" answer to why the above is not correct (I started this thread, so I get to say what is correct with respect to my intent). He said: >It really doesn't rename the type. >Enumeration literals are not available from >the subtype. To get to the values associated with subtype "x" you still have to reference type "y". This defeats the whole point of doing the "rename" (implemented as a subtype). -al