From: Robert A Duff <bobduff@world.std.com>
Subject: Re: HELP! ADA and Binary Strings
Date: 2000/03/19
Date: 2000-03-19T00:00:00+00:00 [thread overview]
Message-ID: <wccem96d85b.fsf@world.std.com> (raw)
In-Reply-To: 38D4CEB9.A2D70036@netscapeonline.co.uk
j80edd <j80edd@netscapeonline.co.uk> writes:
> In order to calculate then hamming distance the xor opperator is used on
> the two binary strings, and then the number of ones is counted. The
> problem is how to hold the binary strings. Is there any way in ada to
> access the binary value of a integer or character? currently i am
> trying to us an array of an array of type boolean. Any help would be
> greatly appreciated.
Arrays of booleans have "xor". Look up Unchecked_Conversion and pragma
Pack. Also, perhaps, modular types.
- Bob
prev parent reply other threads:[~2000-03-19 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-19 0:00 HELP! ADA and Binary Strings j80edd
2000-03-19 0:00 ` Robert A Duff [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox