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: a07f3367d7,a7135c0f450945a5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!d20g2000yqh.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: How to convert a string containing two hex digits to a character? Date: Mon, 11 Jan 2010 07:53:14 -0800 (PST) Organization: http://groups.google.com Message-ID: <1eb0d4a1-8ad0-442a-b9aa-2b41a3f3a8db@d20g2000yqh.googlegroups.com> References: <93bb3b0f-1140-4fb7-8d7e-d97af3b57aaa@m16g2000yqc.googlegroups.com> <74e3d1de-b560-442d-8190-f3285ee31b0c@f5g2000yqh.googlegroups.com> <2m4g35mnk59z$.xhxh0f7riqad.dlg@40tude.net> <1a68twjk8xoel.16vicep9cbrn2.dlg@40tude.net> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1263225194 29577 127.0.0.1 (11 Jan 2010 15:53:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 11 Jan 2010 15:53:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d20g2000yqh.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; 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),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:8695 Date: 2010-01-11T07:53:14-08:00 List-Id: On Jan 9, 8:04=A0am, "Dmitry A. Kazakov" wrote: > > There are no Pred and Succ on reals, complexes and the likes, > > BTW, there is Float'Succ! I tempted to say due to a language design flaw, > because it exposes the nature of Float as a model. I don't see this is a flaw. It's a reminder that a Float, on any computer, in any language, is actually limited to a subset of rational numbers, which means you need to exercise some caution when using them. Programmers who think "Float" can represent any real number, and that arithmetic on them is just like doing arithmetic on real numbers, are going to get into trouble, so it doesn't seem like a good thing to hide "the nature of Float as a model". Anyway, Float'Succ was not present in Ada 83 but was added in Ada 95, so someone must have thought it was useful for some practical purpose. -- Adam