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,cd1591f986baca62 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-12 08:22:11 PST Path: supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!europa.netcrusader.net!144.212.100.101!newsfeed.mathworks.com!cpk-news-hub1.bbnplanet.com!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: AdaYY; Assertions? Date: Mon, 12 Mar 2001 11:20:34 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3AACF752.A24B631F@averstar.com> References: <3AAA9B7A.36B601F0@ix.netcom.com> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 984414034 8095 141.199.8.77 (12 Mar 2001 16:20:34 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 12 Mar 2001 16:20:34 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5645 Date: 2001-03-12T16:20:34+00:00 List-Id: 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)