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, MSGID_RANDY 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: Robert Dewar Subject: Re: HELP: renames and enum values Date: 2000/04/09 Message-ID: <8cqf1i$i72$1@nnrp1.deja.com>#1/1 X-Deja-AN: 608760741 References: <38ECE0EB.4BD4A53E@mindspring.com> <38EE2019.4C91075D@Raytheon.com> <38EE494D.DDB9CE9@mindspring.com> <8cp1hd$3so$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x28.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Sun Apr 09 17:35:47 2000 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.61 [en] (OS/2; I) Date: 2000-04-09T00:00:00+00:00 List-Id: In article , dale wrote: > Robert Dewar wrote: > > > subtype x is y; > > > > why isn't that good enough for renaming purposes???? > > ...because beginners don't think of it? > > Is there any reason why it shouldn't work? (apart from being another > way to accomplish the same thing), i.e. is there some fundamental > philosoply embedded in Ada that means it would be a Bad Thing? Sorry, I don't know what you mean by "another way" here, this is the ONE and ONLY method to get the effect of "renaming" types, and is absolutely standard Ada, and yes it works fine. And who knows what beginners might or might not think of, but any decent Ada book should point out this standard usage. The RM of course is quite clear on the semantic effect of such a declaration, and that's the end of its responsibility, the RM gives the (fairly) formal definition of the language, it is not in the business of pointing out how it can be used :-) Sent via Deja.com http://www.deja.com/ Before you buy.