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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d1df6bc3799debed X-Google-Attributes: gid103376,public From: "John G. Volan" Subject: Re: Not intended for use in medical, Date: 1997/05/12 Message-ID: <3376C69B.4E70@sprintmail.com>#1/1 X-Deja-AN: 241007330 References: <3.0.32.19970423164855.00746db8@mail.4dcomm.com> <3374C19F.15FE@sprintmail.com> <3375EBA0.777A@sprintmail.com> Organization: Sprint Internet Passport Reply-To: johnvolan@sprintmail.com Newsgroups: comp.lang.ada Date: 1997-05-12T00:00:00+00:00 List-Id: Robert A Duff wrote: > > By the way, if you want your "T'Increment" feature to fit in with the > style of Ada, it should be T'Incr or T'Inc. That will only work if you don't need to distinguish "Increment" (++ analog) from "Increase(By)" (+= analog). When we had this discussion before on comp.lang.ada, I think there was some criticism against overloading "Inc" and "Dec": procedure T'Inc (X : in out T'Base); -- ++ analog procedure T'Dec (X : in out T'Base); -- -- analog procedure T'Inc (X : in out T'Base; By : in T'Base); -- += analog procedure T'Dec (X : in out T'Base; By : in T'Base); -- -= analog Hence my differentiating Increment vs. Increase, Decrement vs. Decrease. > Attribute names are often > abbreviated -- e.g. T'Max, T'Val, T'Pred. But not always: T'Ceiling (vs. T'Ceil), T'Rounding (vs. T'Rnd), etc. > I'd say Ada's style is to > abbreviate attribute names when you can come up with a "tasteful" > abbreviation. Oh? When I've taught Ada83 in the past, I was always somewhat embarrassed by the fact that there just is no polite pronunciation for 'Succ. :-) ------------------------------------------------------------------------ Internet.Usenet.Put_Signature (Name => "John G. Volan", Home_Email => "johnvolan@sprintmail.com", Slogan => "Ada95: The World's *FIRST* International-Standard OOPL", Disclaimer => "These opinions were never defined, so using them " & "would be erroneous...or is that just nondeterministic now? :-) "); ------------------------------------------------------------------------