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,FREEMAIL_FROM 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-7-bit X-Received: by 10.224.87.2 with SMTP id u2mr9633320qal.4.1363034603482; Mon, 11 Mar 2013 13:43:23 -0700 (PDT) X-Received: by 10.49.71.100 with SMTP id t4mr951450qeu.29.1363034603456; Mon, 11 Mar 2013 13:43:23 -0700 (PDT) Path: o5ni743qas.0!nntp.google.com!dd2no788979qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 11 Mar 2013 13:43:23 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=149.32.224.34; posting-account=Qh2kiQoAAADpCLlhT_KTYoGO8dU3n4I6 NNTP-Posting-Host: 149.32.224.34 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Is this expected behavior or not From: Anh Vo Injection-Date: Mon, 11 Mar 2013 20:43:23 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2013-03-11T13:43:23-07:00 List-Id: On Monday, March 11, 2013 1:01:04 PM UTC-7, Robert A Duff wrote: >> Anh Vo writes:=20 >> I have read ARM section 3.2.4, Subtype Predicates, I did not see any=20 >> rules prohibiting from using attribute 'Succ as contained in the code=20 >> nipet below. I would expect Prime'Succ (3) return 5 for next prime=20 >> number. However, 4 is returned instead. Is this a correct behavior?=20 >It is standard-conforming behavior. Prime'Succ is the same as Prime'Base'S= ucc. >Many other attributes behave the same way. This has been true since A= da 83. >For example, Prime'Succ(1000) =3D 1001, and does not raise an excep= tion. >Positive'Image (-10) =3D "-10".=20 Thank you for your clarification. My next question is that should ARM menti= on some thing of that effect regarding subtype predicates.