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: 103376,5c1125c290d9dd14 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!news.k-dsl.de!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions, 20100810 release Date: Fri, 13 Aug 2010 15:36:01 +0200 Organization: Ada At Home Message-ID: References: <15e1x67lls1pe$.sqnhbm59hwdz$.dlg@40tude.net> <87r5i3j945.fsf@ludovic-brenta.org> NNTP-Posting-Host: M2yP1Cx/h9YxW/Ct5b534Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.60 (Win32) Xref: g2news1.google.com comp.lang.ada:13214 Date: 2010-08-13T15:36:01+02:00 List-Id: Le Fri, 13 Aug 2010 08:54:18 +0200, Ludovic Brenta = a =E9crit: > Yes, I did a _G here recently; I let the coding standard of Eurocontro= l > (my day job) influence me. The coding standard says *_G for generics,= > *_T for secondary types and just T for types. Hence: > > package S_Expression is -- singlular > type T is ...; -- the primary type, S_Expression.T > generic ... > package Serialization_G is ... > end Serialization_G; > private > type Internal_T is ...; -- a secondary (helper) type > end S_Expression; They seems to have an affinity for very short names. This would need = evaluation (may be good at some point, less at some others) > Over the years I grew used to it and now I like it. One of the > advantages is that you don't have to struggle to find meaningful names= > for parameters; e.g. you can say: > > procedure Foo (Internal : out Internal_T) is ... > end Foo; For that one, the merit does not come to _T, but rather to _Any_Suffix. = = We've talked about it already, this was about the _Type suffix. This _T = = works the same way. -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.