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,60fe876e7675f11 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,CP1252 Received: by 10.68.74.201 with SMTP id w9mr12451383pbv.0.1328716717163; Wed, 08 Feb 2012 07:58:37 -0800 (PST) Path: wr5ni1691pbc.0!nntp.google.com!news2.google.com!postnews.google.com!q12g2000yqg.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Weird behavior with modular type Date: Wed, 8 Feb 2012 07:29:29 -0800 (PST) Organization: http://groups.google.com Message-ID: <9de383d1-b855-42f5-b112-cd4e7250e326@q12g2000yqg.googlegroups.com> References: <32c99412-2c88-4438-a955-de19a7f034a2@d15g2000yqg.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1328716717 9059 127.0.0.1 (8 Feb 2012 15:58:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 8 Feb 2012 15:58:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q12g2000yqg.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLUEHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; .NET4.0C),gzip(gfe) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Date: 2012-02-08T07:29:29-08:00 List-Id: On Feb 7, 10:53=A0pm, "J-P. Rosen" wrote: > Le 07/02/2012 19:21, Yannick Duch=EAne (Hibou57) a =E9crit : > > > I still can't explain the first and the second interpretation. In the > > first case =9310 ** I=94 seems to be interpreted as =93(10 ** I) mod 25= 6=94 and > > =93Natural'Pos (10 ** I)=94 seems not. > > /operations/ of modular type wrap, and only operations. In the first > case, there is an operation (**). In the second case, there is none (the > ** is on Universal_Integer, which is not a modular type). > > Static expressions have to belong statically to their type, so it seems > correct to me. Except that there's no static expression here. -- Adam