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,ab1d177a5a26577d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.68.MISMATCH!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: What's wrong with C++? Date: Thu, 17 Feb 2011 22:00:15 +0100 Organization: Ada @ Home Message-ID: References: <104cfd9f-dbf5-4f05-9c4a-a2319dd371a9@glegroupsg2000goo.googlegroups.com> <4d5d0c16$0$6972$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: QIaZeGkYuJ/9fpFW+x/p5g.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 User-Agent: Opera Mail/11.01 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news2.google.com comp.lang.ada:18342 Date: 2011-02-17T22:00:15+01:00 List-Id: Le Thu, 17 Feb 2011 12:52:53 +0100, Georg Bauhaus = a =C3=A9crit: > But anyway, the argument is easily refuted as by > firing this riposte: > > procedure Safe is > > function "+" (Left, Right: Integer) return Integer is > begin > return 0; > end "+"; > > A : array (Integer range 1 .. 2) of Integer; > begin > for K in A'Range loop > A (A'First + K - 1) :=3D 666; > end loop; > end Safe; > > > Make "+" a little more obscure (if possible) and have > a proponent of Ada look for the error... Here, Ada 2012's pre-post-conditions comes in the playground ;) -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]