From: Marin David Condic <diespammer@flinet.com>
Subject: Re: Bit manipulation facilities in Ada
Date: 1998/11/23
Date: 1998-11-23T00:00:00+00:00 [thread overview]
Message-ID: <36598713.3747C7BB@flinet.com> (raw)
In-Reply-To: 739bfk$u0g$1@nnrp1.dejanews.com
I'll agree that Ada has as-good-as-or-better features for bit manipulation
than C. The original question, however, was to find a good source for
learning how to do this. The Ada Reference Manual certainly spells out all
the operators and declarations necessary to do bit-twiddling - but not all
conveniently in one section. I'd think that you might find some of this in
a "Ada for Recovering C Programmers" text, but myself, not being a
Recovering C programmer, I've never read any of these texts. Try looking at
www.adahome.com in the bibliography - you might locate something there.
MDC
dewarr@my-dejanews.com wrote:
> > Robert T. Sagris wrote in message
> > <36573C4D.DA431821@physics.purdue.edu>...
> <snip>
> > The Professor has already recommended C for its built in
> > Bit operators.
> > But I would like to try it in Ada, as I've never used in
> > a class.
> > I could use the practice.
> >
> > Robbi Sagris
>
> Ada is far better than C for this purpose. In addition to
> all the general (and quite correct) propaganda about the
> general superiority of Ada, there is one particular feature
> that is missing in Ada, namely packed bit arrays. In C you
> have to program this your self, as an array of bytes, which
> you then do bit manipulation on.
> <snip>
--
Marin David Condic
===========================================================
"A government that is big enough to give you all you want is big
enough to take it all away."
-- Barry Goldwater
===========================================================
next prev parent reply other threads:[~1998-11-23 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-21 0:00 Bit manipulation facilities in Ada Robert T. Sagris
1998-11-21 0:00 ` Srinivasan, R
1998-11-22 0:00 ` dewarr
1998-11-22 0:00 ` Simon Wright
1998-11-23 0:00 ` dewarr
1998-11-24 0:00 ` P.S. Norby
1998-11-23 0:00 ` Marin David Condic [this message]
1998-11-24 0:00 ` Ole-Hjalmar Kristensen
1998-11-24 0:00 ` John McCabe
1998-11-22 0:00 ` Robert T. Sagris
1998-11-22 0:00 ` The Ludwig Family
1998-11-23 0:00 ` dennison
1998-11-22 0:00 ` Matthew Heaney
1998-11-22 0:00 ` dewarr
1998-11-23 0:00 ` Robert I. Eachus
1998-11-24 0:00 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox