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: 103376,1b41412c7bc28c47 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder.news-service.com!goblin2!goblin.stu.neva.ru!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Wed, 06 Aug 2008 21:43:44 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Suffix _T for types found good References: <2e9ebb23-a68b-43cf-8871-febcb173f951@56g2000hsm.googlegroups.com> <4899dc60$0$23583$4f793bc4@news.tdc.fi> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4899f052$0$23608$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1218048082 news.tdc.fi 23608 81.17.205.61:32916 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:1470 Date: 2008-08-06T21:43:44+03:00 List-Id: amado.alves@gmail.com wrote: > "_Ref_T" has the right size :-) > > But it's got to have the _T. I want to write > > Object_Ref : Object_Ref_T; I use a lot of private types, not visibly of an access type, but privately defined as an access to a type defined in the body of the package. I want to hide, to some extent, the fact that the type is implemented as an access type, so I don't use _Ref on the object identifiers. Nearly all uses of identifiers for such objects occur as formal or actual parameters; the only reason that I use _Ref on the type-name, instead of _T, is to explain why the parameter mode is nearly always "in", although the parameter may be modified: procedure Foo (Object : in Object_Ref) ... Using _Ref on the object identifiers would reduce readability in my opinion -- the many _Refs would clutter the statements, and not only the declarations. I treat the _Ref suffix as reserved for access types. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .