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,23c0de5a42cf667e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: GNAT packages in Linux distributions Date: Tue, 25 May 2010 22:45:31 +0200 Organization: Ada At Home Message-ID: References: <87mxw9x7no.fsf@ludovic-brenta.org> <16bz9kvbqa8y9$.155ntpwpwl29d.dlg@40tude.net> <4be97bea$0$2966$ba4acef3@reader.news.orange.fr> <1p87qdlnjbufg.127laayhrw9x3$.dlg@40tude.net> <4j73xhgimt6r$.pu55kne2p2w5$.dlg@40tude.net> NNTP-Posting-Host: lwoedXCBwVNAtSGnEUHIWA.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.53 (Win32) Xref: g2news2.google.com comp.lang.ada:11991 Date: 2010-05-25T22:45:31+02:00 List-Id: Le Wed, 12 May 2010 19:24:11 +0200, Dmitry A. Kazakov = a =C3=A9crit: > Yes, it is better but that is not the point. Which is there is no > substantial difference between Eiffel precondition and C's if statemen= t > beyond syntax sugar, and that if-statement is less misleading. There is a major difference : Eiffel's pre/cond on methods are inherited= = by derived class. With C, or even with Ada' pragma Assert, this have to = be = done manually. Side note: I'm not talking about pre/cond in Ada 2012/2015, which will b= e = closer to that of Eiffel. However, as SPARK already has this and do it = better from my point of view (because of static checking and proofs), I = am = not waiting for Ada 2012/2015 for that. -- = There is even better than a pragma Assert: a SPARK --# check.