comp.lang.ada
 help / color / mirror / Atom feed
From: rod@praxis-cs.co.uk (Rod Chapman)
Subject: Re: Ada 200X Assertions
Date: 6 Dec 2001 01:41:06 -0800
Date: 2001-12-06T09:41:06+00:00	[thread overview]
Message-ID: <ba18d5cb.0112060141.607bad76@posting.google.com> (raw)
In-Reply-To: 3C0EEC25.E2738366@adaworks.com

Richard Riehle <richard@adaworks.com> wrote in message news:<3C0EEC25.E2738366@adaworks.com>...

> It sounds as if Dr. Lamm is
> taking on the job of seeking solutions for DBC within Ada.   Kudos to him.

I hope any such effort starts with a good look at how SPARK works,
where support for DBC is very strong.  Even without explicit pre-
or post-conditions, a simple subprogram declaration in SPARK carries
a far more onerous contract than the same piece of text in Ada.

One critical issue is visibility - most non-trivial assertions involve
states which aren't visible according to Ada's rules, so we have
to have the "--# global" annotation to extend visibilty of state
in annotation context.  The design of a useful assertion mechanism
in Ada0Y or later would have to consider this need carefully.
 - Rod



  reply	other threads:[~2001-12-06  9:41 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-04  3:53 Ada 200X Assertions Richard Riehle
2001-12-04  8:54 ` Lutz Donnerhacke
2001-12-04 17:09   ` Robert Dewar
2001-12-05 14:34     ` Lutz Donnerhacke
2001-12-04 18:43   ` Matthew Heaney
2001-12-05 15:16     ` Lutz Donnerhacke
2001-12-05 18:40       ` Matthew Heaney
2001-12-05 19:25         ` Matthew Heaney
2001-12-05 19:36         ` Lutz Donnerhacke
2001-12-05 22:00           ` Mark Lundquist
2001-12-05 22:49             ` Matthew Heaney
2001-12-06  5:04               ` Mixins (was Re: Ada 200X Assertions) Mark Lundquist
2001-12-05 19:57       ` Access discriminants " Mark Lundquist
2001-12-05 21:30       ` Ada 200X Assertions Matthew Heaney
2001-12-05 21:32         ` Lutz Donnerhacke
2001-12-17  6:43       ` David Thompson
2001-12-17  8:55         ` Lutz Donnerhacke
2001-12-04 19:10 ` Randy Brukardt
2001-12-04 21:21   ` Ehud Lamm
2001-12-06  3:55     ` Richard Riehle
2001-12-06  9:41       ` Rod Chapman [this message]
2001-12-07 22:51     ` Mark Lundquist
2001-12-05  9:43 ` Volkert
replies disabled

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