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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fc6f9338f3a892fe X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed.stueberl.de!feed.news.tiscali.de!news.belwue.de!news.uni-stuttgart.de!carbon.eu.sun.com!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: A couple of questions Date: Sun, 2 May 2004 10:48:19 +0000 (UTC) Organization: BT Openworld Message-ID: References: NNTP-Posting-Host: host81-154-190-181.range81-154.btcentralplus.com X-Trace: hercules.btinternet.com 1083494899 26 81.154.190.181 (2 May 2004 10:48:19 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Sun, 2 May 2004 10:48:19 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Xref: controlnews3.google.com comp.lang.ada:178 Date: 2004-05-02T10:48:19+00:00 List-Id: "Georg Bauhaus" wrote in message news:c72d27$cpo$1@a1-hrz.uni-duisburg.de... > There is an Ada Issue (288) discussing pragmas Pre_Assert, > Classwide_Pre_Assert, and Post_Assert for inclusion in the next > standard. They formalise DbC for future Ada programs. > > The names have been changed from Precondition and Postcondition, > unfortunatly, falling short of customary Ada names' quality in my view. These are not going to be in the next language revision - they are "No Action". The "Assert" pragma is however going to make it, so I guess you could make an arguement that the user can mimic pre and post conditions them selves, with some disapline, e.g. procedure Foo is begin pragma Assert (); -- whatever Foo does pragma Assert (); end Foo; -- Martin