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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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.132.81 with SMTP id a17mr433130bkt.4.1339697387364; Thu, 14 Jun 2012 11:09:47 -0700 (PDT) Path: e27ni48176bkw.0!nntp.google.com!news1.google.com!news2.google.com!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Mon, 11 Jun 2012 20:38:52 +0200 Organization: cbb software GmbH Message-ID: References: <1c82b5mc3waww.1t6q6vj61u36u.dlg@40tude.net> <42a87cf3ce9bfd6054f78b2b5b356301@dizum.com> <4fd60053$0$9510$9b4e6d93@newsspool1.arcor-online.net> <87txyhkei1.fsf@adaheads.sparre-andersen.dk> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 4RFYTQ6jM/dAKFJoI0fUkg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-06-11T20:38:52+02:00 List-Id: On Mon, 11 Jun 2012 18:19:34 +0200, Jacob Sparre Andersen wrote: > Dmitry A. Kazakov wrote: > >> Code points are numeric: >> >> http://en.wikipedia.org/wiki/Unicode >> >> As I wrote, I considered Wide_Wide_Character, which also partially >> implements the interface of code point. I used modular interface >> instead because numeric literals seem more important for code points >> than character literals. > > Did you remember to override the operators on your code point type with > abstract functions? > > type Code_Point is mod 2 ** 32; > overriding > function "+" (Left, Right : Code_Point) return Code_Point is abstract; > ... I know the trick. I didn't do that because +1 is useful for sets and maps. Code_Point'Succ is annoying. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de