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,7a3b1c6915ea1273 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.196.130 with SMTP id im2mr1668375pbc.3.1326480751272; Fri, 13 Jan 2012 10:52:31 -0800 (PST) Path: lh20ni178342pbb.0!nntp.google.com!news1.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: How many Ada compiler bugs are here? Date: Fri, 13 Jan 2012 19:52:22 +0100 Organization: cbb software GmbH Message-ID: <174t2s4utb9f7$.ee17v54xprdm$.dlg@40tude.net> References: <11extopcf5hsy.qk7psu30kjrp.dlg@40tude.net> <1261983835348169208.338335rmhost.bauhaus-maps.arcor.de@news.arcor.de> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: PPt+vSuBRqtkVsMLa1J3Dg.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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-01-13T19:52:22+01:00 List-Id: On 13 Jan 2012 17:42:57 GMT, georg bauhaus wrote: > "Dmitry A. Kazakov" wrote: >> On Fri, 13 Jan 2012 10:06:02 -0500, Robert A Duff wrote: >> >>> Here's a workaround: >>> >>> function Foo return T is >>> begin >>> raise Constraint_Error; >>> return Foo; -- kludgy recursive call; can't get here! >>> end Foo; >> >> Cool! I never thought about that. Thanks! > > Have you used gnatstub before? Never. I always add a specification and the body together, i.e. spec A body A spec B body B ... rather than spec A spec B ... body A body B ... Otherwise I would certainly forget to implement something, because I do not do coverage testing. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de