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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,64f0fb07a88662b1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!cyclone1.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny02.POSTED!0e8a908a!not-for-mail From: Hyman Rosen User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Contract checking in Ada References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sun, 03 Apr 2005 20:19:03 GMT NNTP-Posting-Host: 70.107.17.105 X-Complaints-To: abuse@verizon.net X-Trace: trndny02 1112559543 70.107.17.105 (Sun, 03 Apr 2005 16:19:03 EDT) NNTP-Posting-Date: Sun, 03 Apr 2005 16:19:03 EDT Xref: g2news1.google.com comp.lang.ada:10268 Date: 2005-04-03T20:19:03+00:00 List-Id: Randy Brukardt wrote: > The problem is that assertions of all stripes (like runtime checks) detect > unanticipated conditions before much damage is done. And no one antipicates > (and thus tests) every possible issue. But in detecting those unanticipated conditions, they do maximum damage. We've had this discussion before. If some operation raises Constraint Error or Program Error, or fails some other assertion, the action usually taken is to abort the program. That can mean losing unsaved work, or just rendering a program unusable where it might otherwise muddle through and continue working even thiugh it has done something illegal.