comp.lang.ada
 help / color / mirror / Atom feed
From: Peter C. Chapin <pchapin@sover.net>
Subject: Newbie question: How does one do bit manipulation in Ada?
Date: Tue, 23 Dec 2003 01:58:56 GMT
Date: 2003-12-23T01:58:56+00:00	[thread overview]
Message-ID: <MPG.1a516ba5b76b5bee989684@news.sover.net> (raw)


Hello!

I'm a C/C++ programmer in the process of teaching myself Ada. I've been 
writing toy programs to get a feeling for the language. There is 
obviously a lot to learn, but I'm enjoying myself.

Anyway, I have a need to do some bit manipulations in one of my 
programs. In particular I want to invert certain bits in a number 
(integer). I'm used to doing this with a bitwise XOR operator (C/C++) so 
I looked around for some kind of equivalent in Ada but I didn't find 
anything in package Standard or in any of the "usual" library packages. 
Am I missing something or am I just thinking about this wrong?

Thanks!

Peter



             reply	other threads:[~2003-12-23  1:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23  1:58 Peter C. Chapin [this message]
2003-12-23  3:01 ` Newbie question: How does one do bit manipulation in Ada? Georg Bauhaus
2003-12-23  3:23   ` Peter C. Chapin
2003-12-23  3:36     ` tmoran
2003-12-23  3:33 ` Steve
2003-12-23  9:09 ` Stephen Leake
2003-12-28 13:20   ` Peter C. Chapin
2003-12-28 18:40     ` Robert I. Eachus
2003-12-29  2:57       ` Peter C. Chapin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox