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,a415d3a613d86a4e X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Ada Enumerations Date: 1997/12/04 Message-ID: #1/1 X-Deja-AN: 295113584 References: <662cs9$b34$1@newman.pcisys.net> <663j9f$e1l@mtinsc02.worldnet.att.net> <3485D2AE.3F54@hso.link.com> X-Complaints-To: usenet@news.nyu.edu X-Trace: news.nyu.edu 881244482 27154 (None) 128.122.140.58 Organization: New York University Newsgroups: comp.lang.ada Date: 1997-12-04T00:00:00+00:00 List-Id: Stanley said <> Actually it is Ada 83 that clearly established the precedent of using abbreviations for attributes (Pred, Succ, ...) and Ada 95 continues the tradition (Max, Min, Trunc, ..) so it seems quite appropriate to abbreviate. I guess you can't choose names to make everyone happy! Note that 'Img is very specifically intended for writing quick debugging code, so it is quite deliberate to give it a very short name, and if you don't like the name, fine, it should not appear in any of your final code anyway. After all the ONLY point of Img is to shorten things (from e.g. Integer'Image (K) to K'Img), so it would be pretty pointless to give it a long name! I must say I don't see so much of a problem with Unchecked_Conversion for replacing Enum_Rep unless you have a really hostile compiler. For types like this, Unchecked_Conversion should work as expected in cases where the number of bits of the source and target differs.