From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Need Help On Ada95 Problem
Date: Fri, 10 Feb 2012 08:29:03 -0500
Date: 2012-02-10T08:29:03-05:00 [thread overview]
Message-ID: <wccsjii7r6o.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: jh2ati$nba$1@dont-email.me
"Alex" <alex@foo.invalid> writes:
> Oh, I see how you're confused. Once you get the value of each digit in
> the PIN, though, it doesn't matter that the 3-4-5 corresponding to
> V-A-L isn't in ASCII order. . . it's still just a direct index-based
> lookup (just off-by-one because Ada Strings are indexed starting at 1
> rather than 0).
There's no off-by-one issue here. The OP wants a mapping from
digit characters to other characters. That can be implemented
as a simple array, with the right index subtype. That array
isn't a String, because they keys are not integers.
- Bob
next prev parent reply other threads:[~2012-02-10 13:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 1:03 Need Help On Ada95 Problem Will
2012-02-09 1:51 ` Robert A Duff
2012-02-09 2:01 ` Shark8
2012-02-10 1:36 ` BrianG
2012-02-10 2:22 ` Shark8
2012-02-10 5:32 ` Alex
2012-02-10 15:19 ` Shark8
2012-02-10 15:45 ` Alex
2012-02-10 20:07 ` Robert A Duff
2012-02-12 19:40 ` Will
2012-02-12 19:42 ` Will
2012-02-12 22:26 ` Robert A Duff
2012-02-13 0:41 ` Will
2012-02-13 0:43 ` Nasser M. Abbasi
2012-02-10 5:45 ` Alex
2012-02-10 13:29 ` Robert A Duff [this message]
2012-02-10 13:50 ` Alex
2012-02-10 14:30 ` Robert A Duff
2012-02-10 15:32 ` Alex
2012-02-10 20:03 ` Robert A Duff
2012-02-13 3:28 ` BrianG
2012-02-10 8:47 ` Simon Wright
2012-02-09 3:38 ` Alex
[not found] ` <90a10801-440b-4a31-88d0-f0f7c17137f1@eb6g2000vbb.googlegroups.com>
2012-02-09 13:35 ` Alex
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox