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: g2news2.google.com!postnews.google.com!c3g2000yqd.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: Fri, 6 Nov 2009 03:34:43 -0800 (PST) Organization: http://groups.google.com Message-ID: <3a44fd68-8b89-4d00-832e-638bdf7ae02f@c3g2000yqd.googlegroups.com> References: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> NNTP-Posting-Host: 77.198.58.159 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1257507284 15975 127.0.0.1 (6 Nov 2009 11:34:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 6 Nov 2009 11:34:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c3g2000yqd.googlegroups.com; posting-host=77.198.58.159; 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: g2news2.google.com comp.lang.ada:9012 Date: 2009-11-06T03:34:43-08:00 List-Id: On 6 nov, 11:26, Stephen Leake wrote: > "Vincent Marciante" writes: > > "Stephen Leake" wrote in message > >news:u1vkdrert.fsf@stephe-leake.org... > >> This is illegal: > > >> =A0 =A0procedure (List : in list); > > >> So we have to add noise to either the object or the type, to keep the > >> compiler happy. That's all there is to it. > > > That is not necessary: > > > package sdgfkjasf is -- or whayever > > > =A0 =A0type List is ... > > > =A0 =A0procedure jsdfks (List : sdgfkjasf.List); > > > =A0 =A0... > > That's the first time I've seen that suggestion. It's very > interesting. The package name has to show up every time the type is > paired with an object of the same name. But in other situations, the > package name can be left off. > > So this ends up being less noise than appending _Type everywhere. > > Just to be pedantic, it _is_ adding noise. It's just a different form > of noise than _Type. > > I'll have to try it in a semi-real project. I've been using _Type for > over 15 years, so it will take some effort :). > > It's interesting why no one seems to have thought of this before. Perhaps because this is not to be applied in a constant manner