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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d5b211b0c1ffcf3e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.157.134 with SMTP id b6mr421587bkx.5.1339696040742; Thu, 14 Jun 2012 10:47:20 -0700 (PDT) Path: e27ni48111bkw.0!nntp.google.com!news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.osn.de!diablo1.news.osn.de!noris.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Mon, 11 Jun 2012 16:27:30 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development References: <1c82b5mc3waww.1t6q6vj61u36u.dlg@40tude.net> <42a87cf3ce9bfd6054f78b2b5b356301@dizum.com> In-Reply-To: Message-ID: <4fd60053$0$9510$9b4e6d93@newsspool1.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 11 Jun 2012 16:27:31 CEST NNTP-Posting-Host: 311589f1.newsspool1.arcor-online.net X-Trace: DXC=fWD]A7?]S2a^Y=RbYBPl4`ic==]BZ:afn4Fo<]lROoRankgeX?EC@@`2XbN1HO]fNmnc\616M64>jLh>_cHTX3jm<;NA]cXcYMb X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Date: 2012-06-11T16:27:31+02:00 List-Id: On 11.06.12 10:22, Dmitry A. Kazakov wrote: > On Sun, 10 Jun 2012 23:36:46 +0200 (CEST), Nomen Nescio wrote: > >> "Dmitry A. Kazakov" wrote: >>> >>>> Please, why have you defined Code_Point as a modular type? >>> >>> Because code point is unsigned. When you declare something signed >>> you do that because you want negative inverses. Signed integers have >>> the base type with 0 in the middle of its range. >> >> That's no reason to use mod. You can put boundaries where you want >> them, integer, or mod. >> >> It's about the operators. > > Exactly, there is *no* arithmetic of code points. In case there is no arithmetic of code points, it is really surprising to see type Code_Point is mod 2**32; and not type Code_Point is private; ;-)