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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!backlog3.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Tue, 13 May 2014 14:46:39 +0200 From: "G.B." User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Weird error with Dynamic_Predicate References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <5372142e$0$6603$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 13 May 2014 14:46:38 CEST NNTP-Posting-Host: a33a23c8.newsspool4.arcor-online.net X-Trace: DXC=RhK2TnN>_mQV0Pe9PRnbJ\4IUKGaSnc\616M64>ZLh>_cHTX3j]cPIgEJ1NDhY X-Complaints-To: usenet-abuse@arcor.de X-Original-Bytes: 1903 Xref: number.nntp.dca.giganews.com comp.lang.ada:186381 Date: 2014-05-13T14:46:38+02:00 List-Id: On 12.05.14 21:47, mockturtle wrote: > Any ideas? From a different angle, a rule of contract-based design--- assuming the lessons learned from DbC---is not a substitute for input checking. While I guess you have your reasons for attaching the Dynamic_Predicate to a string type, if you are preforming proofs, which DbC would oblige you to do, there is a different strategy: By the above rule (about DbC not being input checking), some I/O routine would check the syntax; then, if the characters form a well formed string, the object can be converted to a different string type; this string type does not have the dynamic check attached, since after the checking routine is done, the type's objects are known to have only good values.