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,a7135c0f450945a5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder3.cambriumusenet.nl!feed.tweaknews.nl!193.201.147.71.MISMATCH!xlned.com!feeder3.xlned.com!feeder.news-service.com!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: How to convert a string containing two hex digits to a character? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <93bb3b0f-1140-4fb7-8d7e-d97af3b57aaa@m16g2000yqc.googlegroups.com> <74e3d1de-b560-442d-8190-f3285ee31b0c@f5g2000yqh.googlegroups.com> Date: Sat, 9 Jan 2010 12:33:32 +0100 Message-ID: <2m4g35mnk59z$.xhxh0f7riqad.dlg@40tude.net> NNTP-Posting-Date: 09 Jan 2010 12:33:28 CET NNTP-Posting-Host: 43800651.newsspool2.arcor-online.net X-Trace: DXC=0Y\_\j2kJW7NTD55K=A9EHlD;3Yc24Fo<]lROoR18kF[h?[\[L On Sat, 9 Jan 2010 03:13:38 -0800 (PST), Hibou57 (Yannick Duch�ne) wrote: > I'm welcome to close my comments with more wordings, the addition and > substraction have a formal logic definition which is based on the > notion of successor and predecessor, so the most pure and native way > of doing "+1" and "-1" is to use the successor and predecessor > function. Ada knows that, yeah ;p (as its 'Pred and 'Succ are more > universal than its standard "+ and "-" operators) No. Addition is an operation (in an Abelian group) that may exist independently on the order relation. As an example consider the complex numbers, which is a field. As such it has addition and subtraction. Nevertheless it lacks order, and thus there is no Complex'Pred or Complex'Succ. And conversely, there can be an order, but no addition. Example: String. The guide line should be the semantics. If it is an iteration intended, then T'Succ is a clear favorite, just because x + 1 has nothing to do with enumeration. Unfortunately T'Succ is much too verbose, because it unnecessarily refers to the type. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de