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,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: ANN: Ada 2005 Math Extensions, 20100810 release Date: Fri, 13 Aug 2010 15:41:08 +0200 Organization: Ada At Home Message-ID: References: <15e1x67lls1pe$.sqnhbm59hwdz$.dlg@40tude.net> <4c64f756$0$6985$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: M2yP1Cx/h9YxW/Ct5b534Q.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; 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:13215 Date: 2010-08-13T15:41:08+02:00 List-Id: Le Fri, 13 Aug 2010 10:40:57 +0200, Dmitry A. Kazakov = a =C3=A9crit: > Do you mean the use case or the offending code? I cannot say for the = > latter > because I have no idea when it happens and if the code is legal [*]. T= he > simplest possible use case is the diamond diagram of generic packages = = > [**]: > > A > / \ > B C > \ / > D > > In the specification of D you have to constrain B and C to the same A.= This may also occurs if you wanna do some Mixins. This was how I came to= = it the first if my mind is right. > ** We were told how dreadful the diamond is, so bad that Ada may not = > allow > to have MI, but for sacred generics anything is perfectly OK! Did not understood this sentence, at least the last =E2=80=9Cbut for sac= red = generics anything is perfectly OK!=E2=80=9D -- = 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.