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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,553a6b79b2471571 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s72.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How do you bitwise operations in Ada '83 and '95 References: <1153244316.853254.291560@m79g2000cwm.googlegroups.com> <1153248800.834457.183940@p79g2000cwp.googlegroups.com> <1153258362.266358.15200@h48g2000cwc.googlegroups.com> In-Reply-To: <1153258362.266358.15200@h48g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s72 1153269622 12.201.97.176 (Wed, 19 Jul 2006 00:40:22 GMT) NNTP-Posting-Date: Wed, 19 Jul 2006 00:40:22 GMT Date: Wed, 19 Jul 2006 00:40:22 GMT Xref: g2news2.google.com comp.lang.ada:5795 Date: 2006-07-19T00:40:22+00:00 List-Id: jimmaureenrogers@worldnet.att.net wrote: > > I guess that depends upon your definition of bit-wise operations. > Very few languages support direct indexing of an array of bits. > The equivalent access operations are a lot of nasty bit masking > an bit shifting operations. Indeed. My definition is bitwise and, or, and the like. Accessing individual bits is not included (though masking certainly is). I guess we should ask for the OP's definition. However, your example works exactly the same if the array is not packed, so the fact that the Boolean values are stored as individual bits is a side effect of your desire to save space by packing the array, not a need to access individual bits, so I would argue that it is not an example of bitwise operations, even if accessing individual bits is included in the definition. -- Jeff Carter "I'm a lumberjack and I'm OK." Monty Python's Flying Circus 54