comp.lang.ada
 help / color / mirror / Atom feed
From: Tucker Taft <stt@averstar.com>
Subject: Re: AdaYY; Assertions?
Date: Mon, 12 Mar 2001 11:20:34 -0500
Date: 2001-03-12T16:20:34+00:00	[thread overview]
Message-ID: <3AACF752.A24B631F@averstar.com> (raw)
In-Reply-To: 3AAA9B7A.36B601F0@ix.netcom.com

Lao Xiao Hai wrote:
> ... However, a
> modest
> addition to the next version of Ada could be a powerful capability and
> make
> the language conformant with the publication of algorithm textbooks
> that,
> increasingly, demonstrate their examples by including pre-, post-, and
> invariant
> assertions.

I agree that adding more assertion support is a good idea.  Note
that most Ada 95 compilers already support "point" assertions
via "pragma Assert(bool_expr [, string_expr]);"

Adding pre/post conditions on subprogram specs at least would be
straightforward.  Adding invariants on private types and/or packages would
also be nice, though it requires a bit more design work relating to the
exact points at which the invariants are checked.

> 
> Richard Riehle
> richard@adaworks.com
> rdriehle@nps.navy.mil       (I am currently teaching some classes,
> including Ada,
>                                             at the nearby Naval
> Postgraduate School,
>                                              and this is my email
> address there)

-- 
-Tucker Taft   stt@avercom.net   http://www.averstar.com/~stt/
Chief Technology Officer, AverCom Corporation (A Titan Company) 
Burlington, MA  USA (AverCom was formerly the Commercial Division of AverStar:
http://www.averstar.com/services/ebusiness_applications.html)



  parent reply	other threads:[~2001-03-12 16:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-10 21:24 AdaYY; Assertions? Lao Xiao Hai
2001-03-11 10:44 ` Florian Weimer
2001-03-12 16:20 ` Tucker Taft [this message]
2001-03-12 18:09 ` Stephen Leake
2001-03-14 17:17   ` Lao Xiao Hai
2001-03-14 19:39     ` Robert A Duff
2001-03-19 21:02       ` Robert I. Eachus
  -- strict thread matches above, loose matches on Subject: below --
2001-03-12 11:07 Christoph Grein
2001-03-13  4:55 ` Bryce Bardin
2001-03-13 11:23   ` Florian Weimer
2001-03-14 16:52   ` Lao Xiao Hai
replies disabled

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