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: John English Subject: Re: HELP: renames and enum values Date: 2000/04/13 Message-ID: <38F5D6F9.5B8892F2@bton.ac.uk>#1/1 X-Deja-AN: 610697014 Content-Transfer-Encoding: 7bit References: <38ECE0EB.4BD4A53E@mindspring.com> <38EE2019.4C91075D@Raytheon.com> <38EE494D.DDB9CE9@mindspring.com> <8cp1hd$3so$1@nnrp1.deja.com> <8cqf1i$i72$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@bton.ac.uk X-Trace: saturn.bton.ac.uk 955635507 11383 193.62.183.204 (13 Apr 2000 14:18:27 GMT) Organization: University of Brighton Mime-Version: 1.0 NNTP-Posting-Date: 13 Apr 2000 14:18:27 GMT Newsgroups: comp.lang.ada Date: 2000-04-13T14:18:27+00:00 List-Id: Dale Stanbrough wrote: > All i was attempting to say is that > > type blah renames bleh; > > could be predicted to have the same semantics as a subtype > declaration (this would be the "other way" of performing > subtyping). > > I know what beginners think of, because I had 8 years of > teaching beginners. This is something that some of them > thought of (but not many because most of them were introduced > to subtypes long before renames!). What's even less obvious is the way to rename enumeration literals: function Enum_Literal return Enum_Type renames Other_Enum_Literal; Now, that *really* confuses them, and none of them would ever be able to guess it without being told! ----------------------------------------------------------------- John English | mailto:je@brighton.ac.uk Senior Lecturer | http://www.it.bton.ac.uk/staff/je Dept. of Computing | ** NON-PROFIT CD FOR CS STUDENTS ** University of Brighton | -- see http://burks.bton.ac.uk -----------------------------------------------------------------