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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7ba49aac4e73460 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.229 with SMTP id o5mr8590050pbv.7.1329103700755; Sun, 12 Feb 2012 19:28:20 -0800 (PST) Path: wr5ni18476pbc.0!nntp.google.com!news1.google.com!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: BrianG Newsgroups: comp.lang.ada Subject: Re: Need Help On Ada95 Problem Date: Sun, 12 Feb 2012 22:28:17 -0500 Organization: A noiseless patient Spider Message-ID: References: <553ceec3-ec34-41de-9723-0dc342379cfe@vv9g2000pbc.googlegroups.com> <4ea6309f-cf07-44f6-8c56-5189a0081dcc@g27g2000yqa.googlegroups.com> Mime-Version: 1.0 Injection-Date: Mon, 13 Feb 2012 03:28:19 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="TFSzwg9zEWICKE4g7mPu9w"; logging-data="28750"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HKWSWgB3x1aXFlzvpmmb0" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.24) Gecko/20111108 Thunderbird/3.1.16 In-Reply-To: <4ea6309f-cf07-44f6-8c56-5189a0081dcc@g27g2000yqa.googlegroups.com> Cancel-Lock: sha1:5qJIvl1T40RjrKR5/Prrxbehxoc= Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-02-12T22:28:17-05:00 List-Id: On 02/09/2012 09:22 PM, Shark8 wrote: > On Feb 9, 7:36 pm, BrianG wrote: >> On 02/08/2012 09:01 PM, Shark8 wrote: >> ... >> >>> Meaning that they're hinting strongly that you use the CASE statement. >> >> I don't see why this would require either an if or a case. >> > > Well, you COULD use Ada's Maps; but that's just going to do the same > thing: you still have to define the mapping. > You can't just index into Character (via 'POS, 'VAL and index- > manipulation) because the mapping isn't sequential; > or even partly-sequential in the ASCII codes. > > See the (3,4,5) association with (V,A,L) and (6,7,8) with (T,I,N). Nothing to do with any of that. It's the same function I use to Get/Put hexadecimal. Definitely a case where you don't need, or want, to use predefined types. (Basically what Robert presented.) -- --- BrianG 000 @[Google's email domain] .com