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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!newsfeed.velia.net!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Fri, 03 Oct 2008 11:35:45 +0200 From: Georg Bauhaus Reply-To: rm.tsoh+bauhaus@maps.futureapps.de User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: On pragma Precondition and types References: <48e4dc3b$0$6604$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <48e5e771$0$6609$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 03 Oct 2008 11:35:45 CEST NNTP-Posting-Host: 48f5d9ad.newsspool3.arcor-online.net X-Trace: DXC=[350;Jb6VkCC4i^e1BZ=_HMcF=Q^Z^V3H4Fo<]lROoRA8kFejVH58aZj3WTXKJX9`0`IkWb;J X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7938 Date: 2008-10-03T11:35:45+02:00 List-Id: Dmitry A. Kazakov wrote: > On Thu, 2 Oct 2008 18:09:57 -0500, Randy Brukardt wrote: > >> I suppose you could claim that F is only intended to be used in >> Preconditions and thus should be hidden somehow. But I find that dubious - >> how is the programmer going to avoid triggering the precondition if they >> can't call F to check? > > There is more in that. Preconditions semantically do not belong to the > program. I guess that Assertion_Policy helps restoring the bug-free, assertion-less, genuine, trouble-free, original program. IMHO, preconditions belong to any program that is honest about real-life programming practices. ("Our programs do include checks affecting its operation just like anything in it.")