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: 103376,edafb2ab7e8839bc X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!h48g2000cwc.googlegroups.com!not-for-mail From: "Adam Beneschan" Newsgroups: comp.lang.ada Subject: Re: Char type verification Date: 16 Nov 2006 11:53:44 -0800 Organization: http://groups.google.com Message-ID: <1163706824.713752.132890@h48g2000cwc.googlegroups.com> References: <1163628033.606530.190550@i42g2000cwa.googlegroups.com> <1163627827.1632.10.camel@localhost.localdomain> <1163632532.101867.123200@m73g2000cwd.googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1163706830 13963 127.0.0.1 (16 Nov 2006 19:53:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Nov 2006 19:53:50 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: h48g2000cwc.googlegroups.com; posting-host=66.126.103.122; posting-account=cw1zeQwAAABOY2vF_g6V_9cdsyY_wV9w Xref: g2news2.google.com comp.lang.ada:7511 Date: 2006-11-16T11:53:44-08:00 List-Id: Jeffrey R. Carter wrote: > KE wrote: > > > > It was intended as "How do you translate this example to Ada? How would > > you, as a presumably experienced Ada coder, do it? What hoops would we > > jump through? > > What this example does is output whether the 1st character of the 1st > command-line argument is in the range 'A' .. 'Z'. In the Ada world, we > tend to ignore the details of badly designed examples in poorly designed > languages and simply implement the same functionality. Since there is no > reason for your conversions and home-grown function, we're not going to > waste effort translating them. Unfortunately, I'm not sure the OP actually cared about the functionality. After reading the interaction in this thread, I'm beginning to think he really wanted to know about a certain Ada feature or two (such as going between characters and integers), and threw together a quick little example to try it out, and then ran into problems and asked us for help, and all of us here assumed that the little example *was* the functionality that the poster was trying to accomplish. I'm just saying this so that maybe next time an Ada newcomer uses an example to ask a question, maybe we should try to see what he's really asking. Sure, he could have asked it better, but we can't presume that someone who's new to this language is going to know just how to ask questions about the language. -- Adam