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-Thread: a07f3367d7,39579ad87542da0e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.188.98 with SMTP id fz2mr1651738wic.4.1368583777582; Tue, 14 May 2013 19:09:37 -0700 (PDT) Path: hg5ni110158wib.1!nntp.google.com!feeder1.cambriumusenet.nl!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.138.MISMATCH!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newspeer1.nac.net!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!News.Dal.Ca!news.litech.org!news2.arglkargh.de!news.albasani.net!news.teledata-fn.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 11 May 2013 09:06:11 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Seeking for papers about tagged types vs access to subprograms References: <17ceq51ydy3s0.s94miqqzbg5w.dlg@40tude.net> <1vrhb7oc4qbob$.q02vuouyovp5$.dlg@40tude.net> <19lrzzbgm77v6.1dzpgqckptaj6.dlg@40tude.net> <1bfhq7jo34xpi.p8n2vq6yjsea.dlg@40tude.net> <12gn9wvv1gwfk.10ikfju4rzmnj.dlg@40tude.net> <1oy5rmprgawqs.1jz36okze0xju$.dlg@40tude.net> <1q2ql1e4rcgko.diszzq1mhaq8$.dlg@40tude.net> In-Reply-To: <1q2ql1e4rcgko.diszzq1mhaq8$.dlg@40tude.net> Message-ID: <518dedd4$0$6581$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 11 May 2013 09:05:56 CEST NNTP-Posting-Host: 6e5a99d0.newsspool3.arcor-online.net X-Trace: DXC=?[J?_bfejV8WkSnohXh_00mWAN\=W[gR? X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2013-05-11T09:05:56+02:00 List-Id: On 11.05.13 08:37, Dmitry A. Kazakov wrote: > First of all, there are preconditions of operations and the precondition > put on individual calls. I don't know which one you mean here. But the > preconditions of operations must be statically true. Meaning: a declared > operation can be called anywhere. The client may annotate his calls to the > operation with additional preconditions related to the logic of the program > that uses the operation. These are not the property of the operation and > unrelated to the type. > > The idea that the precondition of first kind should depend on the state of > the objects involved in the operation is a very, VERY bad idea. How do you specify the preconditions of the second kind (on individual calls) in such a way that a programmer, wishing to calling these operations, ensures the calls won't fail as a consequence of violating these preconditions?