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: 103376,edafb2ab7e8839bc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Char type verification Date: Thu, 16 Nov 2006 10:36:20 +0100 Message-ID: <4s2pl8Ft8kf0U1@mid.individual.net> References: <1163628033.606530.190550@i42g2000cwa.googlegroups.com> <1163639333.330603.208930@k70g2000cwa.googlegroups.com> <1163641549.506872.302600@f16g2000cwb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: individual.net 9cDJEqAIwQJvCGnw25lTDA1RworImkZUVb4tfiUb/na7JXxbY= User-Agent: KNode/0.10.4 Xref: g2news2.google.com comp.lang.ada:7496 Date: 2006-11-16T10:36:20+01:00 List-Id: KE wrote: > > Thank you, Mr. Rogers. > > jimmaureenrogers@worldnet.att.net wrote: >> This is an awful piece of code because it must perform a number >> of conversions between character and numeric values. > > In the lowly, quick-and-dirty C world, most data is an integer of one > form or another, anyway, so you shouldn't be worried about that ;-] > ...or at least about my "awfulness" as a coder. > > I appreciate your code. It's the second attempt at a solution. I was > waiting for someone to define a subtype with a range, and you provided > that variation. > > Seeing how many valid - although differentially elegant and/or > efficient - Ada ways of doing this exists was my aim, though I seem not > to have quite elicited enthusiasm. You're getting quite some flak but you must understand that transliterating C into Ada is one of the capital sins over here... You want it for learning purposes but some people rather would prefer that you /unlearn/ the C low-level tricks :) Don't be taken back, this is a very friendly group...