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: 103376,73cb216d191f0fef X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.180.24.132 with SMTP id u4mr7381665wif.6.1363299150611; Thu, 14 Mar 2013 15:12:30 -0700 (PDT) MIME-Version: 1.0 From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Is this expected behavior or not Date: Thu, 14 Mar 2013 17:12:28 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8klywqh2pf$.1f949flc1xeia.dlg@40tude.net> <513f6e2f$0$6572$9b4e6d93@newsspool3.arcor-online.net> <513faaf7$0$6626$9b4e6d93@newsspool2.arcor-online.net> <51408e81$0$6577$9b4e6d93@newsspool3.arcor-online.net> <1xqmd3386hvns.1og1uql2cgnuf$.dlg@40tude.net> <5140b812$0$6575$9b4e6d93@newsspool3.arcor-online.net> <5140f1ad$0$6634$9b4e6d93@newsspool2.arcor-online.net> <7jct0noryc1v.1rnj5kkzx6m35.dlg@40tude.net> <5141c499$0$6642$9b4e6d93@newsspool2.arcor-online.net> <18r2kop6fyozu.tctrjnghfxqs.dlg@40tude.net> <1wv3p3nrtejfk$.bwebhg9agt0l.dlg@40tude.net> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1363299150 6793 69.95.181.76 (14 Mar 2013 22:12:30 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 14 Mar 2013 22:12:30 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Path: bp2ni92439wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!feed.ac-versailles.fr!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail Date: 2013-03-14T17:12:28-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:1wv3p3nrtejfk$.bwebhg9agt0l.dlg@40tude.net... > On Thu, 14 Mar 2013 17:21:23 +0100, J-P. Rosen wrote: ... >> The set of values is not defined by Positive, it is defined by Integer. > > Still, Positive has values, and operations. Yes, and they're exactly the same set as Integer has. The values and operations of a type determine what is statically allowed (that is, what is legal). And for the purposes of legality, Integer and Positive are exactly the same. There are some differences in *dynamic* behavior, but that has nothing to do with the available values and operations. (The text you quoted from the RM about values "belonging" to a subtype is defining dynamic behavior.) I recall some Dmitry guy telling us that dynamic behavior is different from static behavior, and even claiming that dynamic behavior cannot constitute a contract. So it if is not a *contract*, how come it matters for a *type* (which is an integral part of describing a contract)? Randy.