comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: Assertions in the Next Ada Standard
Date: Sat, 12 Jan 2002 01:30:54 GMT
Date: 2002-01-12T01:30:54+00:00	[thread overview]
Message-ID: <3C3F91A5.7DA5CB10@san.rr.com> (raw)
In-Reply-To: a1o2gu$sfe3f$3@ID-25716.news.dfncis.de

Nick Roberts wrote:
> This procedure demonstrates how pre-conditions, post-conditions, invariants,
> and assumptions can all be programmed in existing Ada. 

Except for the inheritance rules. It's a bit more complicated than you
can do with in-line code, in exactly the same way that throwing
exceptions and returning error-code values are different.

(Note that you also forgot to check the invariant upon entry. Except for
routines that initialize limited variables. Etc.)

-- 
Darren New 
San Diego, CA, USA (PST). Cryptokeys on demand.
  The opposite of always is sometimes.
   The opposite of never is sometimes.



  reply	other threads:[~2002-01-12  1:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-11  6:20 Assertions in the Next Ada Standard Richard Riehle
2002-01-11  9:23 ` Dale Stanbrough
2002-01-11 13:47   ` Robert A Duff
2002-01-11 23:28   ` Nick Roberts
2002-01-12  1:30     ` Darren New [this message]
2002-01-11 20:07 ` FGD
2002-01-11 20:39   ` Wes Groleau
2002-01-12  4:56     ` Robert Dewar
2002-01-12  7:30   ` Richard Riehle
2002-01-12 19:58     ` FGD
2002-01-12 21:27       ` Ed Falis
2002-01-12 22:45     ` Darren New
2002-01-14 17:20       ` Robert A Duff
2002-01-14 17:42         ` Darren New
2002-01-14 23:16     ` Mark Lundquist
2002-01-17  6:23     ` Richard Riehle
replies disabled

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