comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: A couple of questions
Date: Sun, 2 May 2004 10:48:19 +0000 (UTC)
Date: 2004-05-02T10:48:19+00:00	[thread overview]
Message-ID: <c72jlj$q$1@hercules.btinternet.com> (raw)
In-Reply-To: c72d27$cpo$1@a1-hrz.uni-duisburg.de

"Georg Bauhaus" <sb463ba@l1-hrz.uni-duisburg.de> 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 (<some_pre_condition>);
   -- whatever Foo does
   pragma Assert (<some_post_condition>);
end Foo;

-- Martin





  reply	other threads:[~2004-05-02 10:48 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-01  1:00 A couple of questions Yeric
2004-05-01  5:12 ` James Rogers
2004-05-01  9:56 ` Martin Krischik
2004-05-01 15:12 ` Yeric
2004-05-01 15:37   ` Ed Falis
2004-05-02 16:48     ` Martin Krischik
2004-05-02 22:39       ` Jeff C,
2004-05-03  7:10         ` Martin Krischik
2004-05-03 19:11           ` Hyman Rosen
2004-05-04  6:45             ` Martin Krischik
2004-05-01 16:04   ` Ludovic Brenta
2004-05-01 17:47   ` Dennis Lee Bieber
2004-05-02  0:13   ` Jeffrey Carter
2004-05-02  1:00   ` Marius Amado Alves
2004-05-01 18:53     ` Yeric
2004-05-01 20:16       ` Ludovic Brenta
2004-05-01 22:25         ` Yeric
2004-05-01 23:38           ` Ed Falis
2004-05-02 12:00             ` Yeric
2004-05-02 13:29               ` Ed Falis
2004-05-02 21:44               ` Marius Amado Alves
2004-05-02  4:18       ` Marius Amado Alves
2004-05-02  8:55       ` Georg Bauhaus
2004-05-02 10:48         ` Martin Dowie [this message]
2004-05-02 11:30           ` Georg Bauhaus
2004-05-02 15:30       ` Pascal Obry
2004-05-01 18:56 ` Marius Amado Alves
  -- strict thread matches above, loose matches on Subject: below --
2004-05-02  1:53 Marius Amado Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox