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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,25d835bb9a4a003f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!news.tornevall.net!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) Date: Fri, 30 Oct 2009 11:40:47 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <48e4d22d-b83d-4f1d-8bcc-d1684345c9e8@a31g2000yqn.googlegroups.com> NNTP-Posting-Host: c6b25f0aadd65be0ad29dbd7de6f0016 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: d1c741f99bfa615a2c5cc58128897833 X-Complaints-To: abuse@tornevall.net X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: <48e4d22d-b83d-4f1d-8bcc-d1684345c9e8@a31g2000yqn.googlegroups.com> X-Validate-Post: http://news.tornevall.net/validate.php?trace=d1c741f99bfa615a2c5cc58128897833 X-SpeedUI: 1738 X-Complaints-Italiano: Parlo la lingua non � italiano User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) X-Posting-User: 9b22bfe2855937f9b3faeec7cfc91295 Xref: g2news2.google.com comp.lang.ada:8897 Date: 2009-10-30T11:40:47-07:00 List-Id: dhenry wrote: > > However there are some drawbacks, like how to name a variable which > should be "message type" (an integer identifying the kind of a > message). We can't use Message_Type, so we use Message_Typ (which is > of type Message_Typ_Type). That's not pretty at all. I like Kind here: Message_Kind for the type and Kind for parameters and objects of the type. > I have a question for people not using any suffix like _Type or _T or > whatever: how do you name your access types? Do you allow here to use > a suffix? The objection is not to suffices; it's to suffices that add no value, which is true of _T[ype]. I personally like _Ptr for access types; on my current project the guideline is to use _Handle if there isn't a better name. -- Jeff Carter "I spun around, and there I was, face to face with a six-year-old kid. Well, I just threw my guns down and walked away. Little bastard shot me in the ass." Blazing Saddles 40