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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ea5071f634c2ea8b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.0.170 with SMTP id 10mr5433378pbf.2.1322077882422; Wed, 23 Nov 2011 11:51:22 -0800 (PST) Path: lh20ni10142pbb.0!nntp.google.com!news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!cs.uu.nl!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Generic-Package Elaboration Question / Possible GNAT Bug. Date: Wed, 23 Nov 2011 20:51:24 +0100 Organization: cbb software GmbH Message-ID: References: <7bf9bc32-850a-40c6-9ae2-5254fe220533@f29g2000yqa.googlegroups.com> <4ecb78b1$0$6643$9b4e6d93@newsspool2.arcor-online.net> <1iofgbqznsviu$.phvidtvxlyj4$.dlg@40tude.net> <4ecbb96e$0$6581$9b4e6d93@newsspool3.arcor-online.net> <4ecbdfdb$0$6629$9b4e6d93@newsspool2.arcor-online.net> <12hfiflyf7pr5$.l3pkpgoid8xt$.dlg@40tude.net> <1ecuhb030iugz.4q1hfjx371xa.dlg@40tude.net> <4ecc393d$0$7625$9b4e6d93@newsspool1.arcor-online.net> <124aq618dmove.884jj64mzm6w$.dlg@40tude.net> <1jxx617mf2cqf$.1j076axdq83mr$.dlg@40tude.net> <4eccd308$0$6623$9b4e6d93@newsspool2.arcor-online.net> <4eccd849$0$6623$9b4e6d93@newsspool2.arcor-online.net> <1n04ab6q3dg0$.1dthih58wz7sl.dlg@40tude.net> <4eccfc43$0$6584$9b4e6d93@newsspool3.arcor-online.net> <1837st224x4qf.1eltyp608r49p$.dlg@40tude.net> <4ecd1b01$0$6552$9b4e6d93@newsspool4.arcor-online.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: ARmOcGB+2dBIwZUEYVS5Gg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news2.google.com comp.lang.ada:14579 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2011-11-23T20:51:24+01:00 List-Id: On Wed, 23 Nov 2011 17:10:41 +0100, Georg Bauhaus wrote: > On 23.11.11 15:43, Dmitry A. Kazakov wrote: >> On Wed, 23 Nov 2011 14:59:31 +0100, Georg Bauhaus wrote: >> >>> If it is wrong to assume that a compiler is correct >> >> It is right that the compiler correctly translates your program. > > We do not know whether or not a compiler correctly translates > a given program unless we show that the translation > is correct. It is no matter if we know it or not. The program legality is independent on that knowledge. > Is there a compiler out there that is know to work correctly for > a set of programs? In this compiler, DbC assertions will > be documentation only. Huh, are you going to detect compiler bugs using preconditions? That is the silliest thing, next to run-time contract checks: X := 1; if X = 1 then -- Wait, that is not enough the compiler might got "=" broken! if X/=2 and X/=3 and X/=4 ... X/=Positive'Last then -- That must give X=1, but, what if and is broken? if not (X=2 or X=3 or X=4 ... -- and so on until we notice that X might be actually Y, "if" be -- "while" etc I don't believe Meyer would claim that. Did he? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de