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,a7135c0f450945a5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!f5g2000yqh.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: comp.lang.ada Subject: Re: How to convert a string containing two hex digits to a character? Date: Sat, 9 Jan 2010 03:13:38 -0800 (PST) Organization: http://groups.google.com Message-ID: <74e3d1de-b560-442d-8190-f3285ee31b0c@f5g2000yqh.googlegroups.com> References: <93bb3b0f-1140-4fb7-8d7e-d97af3b57aaa@m16g2000yqc.googlegroups.com> NNTP-Posting-Host: 77.198.58.231 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1263035618 23461 127.0.0.1 (9 Jan 2010 11:13:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 9 Jan 2010 11:13:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f5g2000yqh.googlegroups.com; posting-host=77.198.58.231; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8681 Date: 2010-01-09T03:13:38-08:00 List-Id: On 9 jan, 11:50, Hibou57 (Yannick Duch=EAne) wrote: > Number_Type'Pred and Number_Type'Succ are also useful when just > increment are decrement are to be done on type whose standard > operators are not visible. It allows to do this computation without > even requiring a "use type". Sorry, I'm back again on the topic (I'm joking with me, alone) : if 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)