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,73cb216d191f0fef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII X-Received: by 10.180.75.82 with SMTP id a18mr1252096wiw.0.1364344762269; Tue, 26 Mar 2013 17:39:22 -0700 (PDT) Path: p18ni19801wiv.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.130.MISMATCH!xlned.com!feeder1.xlned.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsgate.cuhk.edu.hk!news.glorb.com!feeder.erje.net!us.feeder.erje.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Fri, 22 Mar 2013 23:18:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <18r2kop6fyozu.tctrjnghfxqs.dlg@40tude.net> <1wv3p3nrtejfk$.bwebhg9agt0l.dlg@40tude.net> <514874d3$0$6628$9b4e6d93@newsspool2.arcor-online.net> <1o60gooo8xvba$.1ei9cebb07zek$.dlg@40tude.net> <514897bd$0$6641$9b4e6d93@newsspool2.arcor-online.net> <1oqwvcemo8dha$.hevuedtz8eze.dlg@40tude.net> <14aijp8ckzahf$.1ilfm1nw6qgyt$.dlg@40tude.net> <1xg9wka6slgit.1q0leacagdeuv.dlg@40tude.net> <10cliooad0uk.1prxobehp9yr0.dlg@40tude.net> Mime-Version: 1.0 Injection-Date: Fri, 22 Mar 2013 22:16:01 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="2b3884a634d8f846e0712b4e3a92507a"; logging-data="29309"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ATFMrO2WRwWZ39tojYJ3o" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <10cliooad0uk.1prxobehp9yr0.dlg@40tude.net> Cancel-Lock: sha1:+ctrP8cvIHKEz70/QzdkQ7TAXQA= X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Date: 2013-03-22T23:18:02+01:00 List-Id: Le 22/03/2013 15:54, Dmitry A. Kazakov a �crit : >> No, it is not the operation that gives different result, it's the >> > assignment of a value that is incompatible with the variable's >> > constraint that raises C_E. > There is no assignment in my example. Assignment is in the *body* of the > operation Foo. No, assignment happens after returning from Foo. [..] > And what is so special about assignments? Assignment is to a variable, and a variable has a subtype. It's the checking of the constraint when assigning to a variable that raises C_E. >> > The theory of ADT has no notion of subtypes (Ada definition). > There is nothing special in Ada-subtypes. They are just ADTs. You say they are. The rest of the world says they are not. We have come to the point where nothing else can be added. >> > Therefore, >> > you can't translate Ada's subtypes into the terms of ADT. > I just did it. And that's where everybody (including those who designed/maintain the language) thinks you are wrong. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr