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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad06d2d7cb045687 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.73.229 with SMTP id o5mr4006786pbv.7.1328250356964; Thu, 02 Feb 2012 22:25:56 -0800 (PST) Path: lh20ni254842pbb.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Silly and stupid post-condition or not ? Date: Fri, 03 Feb 2012 07:26:00 +0100 Organization: A noiseless patient Spider Message-ID: References: <82wr86fzos.fsf@stephe-leake.org> <5af407fc-2868-44ca-84d2-c51a2a64104d@o4g2000pbc.googlegroups.com> <82k445fu9n.fsf@stephe-leake.org> Mime-Version: 1.0 Injection-Date: Fri, 3 Feb 2012 06:25:56 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="cJo7kSTQUrCFv2/D8KKtqw"; logging-data="542"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Jz5qC2L2eQw/QdHlG0N8O" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 In-Reply-To: <82k445fu9n.fsf@stephe-leake.org> Cancel-Lock: sha1:7BIRWMb4y1k8CHA3ZN9916I8lqA= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-02-03T07:26:00+01:00 List-Id: Le 02/02/2012 10:40, Stephen Leake a écrit : > I agree with Dmitry; post conditions should be _complete_. If the Ada > post condition language is not strong enough to be complete, don't use > it; use natural language comments. > I don't agree with that. Imagine you need (pre-2012) a type for even numbers between 0 and 100. Would you declare: type My_Int is range 0..100; or would you use Integer, on the ground that since you cannot express all of your requirements, you express none? -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr