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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1922c4740861327c X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Bit manipulation facilities in Ada Date: 1998/11/23 Message-ID: <36598713.3747C7BB@flinet.com>#1/1 X-Deja-AN: 414831407 Content-Transfer-Encoding: 7bit References: <36573C4D.DA431821@physics.purdue.edu> <737gmk$9f1$1@nw001t.infi.net> <739bfk$u0g$1@nnrp1.dejanews.com> Content-Type: text/plain; charset=us-ascii Organization: Florida Internet Corporation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1998-11-23T00:00:00+00:00 List-Id: 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>... > > > 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. > -- 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 ===========================================================