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,FREEMAIL_FROM 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 Path: g2news1.google.com!postnews.google.com!s3g2000yqs.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) Date: Sat, 9 Jan 2010 07:03:31 -0800 (PST) Organization: http://groups.google.com Message-ID: <150ff16b-21aa-4473-b25f-ac71a353feb2@s3g2000yqs.googlegroups.com> References: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> <-9ydneBa_O8wB2TXnZ2dnUVZ_tadnZ2d@earthlink.com> <0ef44c2d-3848-4780-8663-f5f96efc7638@k19g2000yqc.googlegroups.com> <4b3b1dea$0$6716$9b4e6d93@newsspool2.arcor-online.net> <287b6c3d-4557-4773-b467-74cc24476a5e@21g2000yqj.googlegroups.com> NNTP-Posting-Host: 77.198.58.231 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1263049411 22447 127.0.0.1 (9 Jan 2010 15:03:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 9 Jan 2010 15:03:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s3g2000yqs.googlegroups.com; posting-host=77.198.58.231; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8687 Date: 2010-01-09T07:03:31-08:00 List-Id: On 31 d=E9c 2009, 14:48, Marco wrote: > I agree - for code to be reusable in the long run it should have some > level of abstraction - specification distinguished from implementation > including public types > > =A0 adding awful "Hungarian" names does not help Ada More words about it (completing my previous words) An example came into my mind yesterday and makes me think about this topic here : a example with a usage of the _Access prefix. An example to show how the use of _Access may not simply be Hungarian notation, is when this convention is applied to a type whose purpose is to have the semantic of an access type, that is, when a copy of an entity of this type used somewhere, will access the same thing as what we would get with the original, even if some modification was done via the original later after the copy was done. This may be implemented as record, an integer, a standard access type. Hungarian notation would mark it as being a record, an integer or a standard access type. _Access does not. This may looks like Hungarian notation, while it is actually not.