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: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: On pragma Precondition and types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <48e4dc3b$0$6604$9b4e6d93@newsspool3.arcor-online.net> Date: Fri, 3 Oct 2008 10:59:27 +0200 Message-ID: NNTP-Posting-Date: 03 Oct 2008 10:59:28 CEST NNTP-Posting-Host: 8798704a.newsspool2.arcor-online.net X-Trace: DXC=DgjL\nSlcg8nBOkdL^Lo7>A9EHlD;3Yc24Fo<]lROoR14nDHegD_]R5M9:1LDZo2<6DNcfSJ;bb[5IRnRBaCd__ZO0P0FGQ 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. Thus it makes a lot of sense to have F declared and implemented outside it. If programs could be written in 3D space, the declaration of F should be written orthogonal to other text... (:-)) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de