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,7a7040918881fd02 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-11 17:30:11 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!rcn!dca6-feed2.news.digex.net!intermedia!newsfeed1.cidera.com!Cidera!cyclone.socal.rr.com!cyclone3.kc.rr.com!news3.kc.rr.com!typhoon.san.rr.com!not-for-mail Message-ID: <3C3F91A5.7DA5CB10@san.rr.com> From: Darren New X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Assertions in the Next Ada Standard References: <3C3E8438.E780D942@adaworks.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 12 Jan 2002 01:30:54 GMT NNTP-Posting-Host: 66.75.151.160 X-Complaints-To: abuse@rr.com X-Trace: typhoon.san.rr.com 1010799054 66.75.151.160 (Fri, 11 Jan 2002 17:30:54 PST) NNTP-Posting-Date: Fri, 11 Jan 2002 17:30:54 PST Organization: Road Runner Xref: archiver1.google.com comp.lang.ada:18808 Date: 2002-01-12T01:30:54+00:00 List-Id: 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.