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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9dec3ff1604723d9,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!newsfeed.stueberl.de!npeer.de.kpn-eurorings.net!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Bitmanipulation in Ada From: Bernd.Specht@gmx.com (Bernd Specht) Organization: No company Message-ID: User-Agent: Xnews/4.05.03 Date: 18 Aug 2004 20:37:08 GMT NNTP-Posting-Date: 18 Aug 2004 22:37:08 MEST NNTP-Posting-Host: 86ba6011.newsread2.arcor-online.net X-Trace: DXC=K8>bN?Elim1?0I78\m5cj:Q5U85hF6f;4jW\KbG]kaM8dglQn]=09h4lYP1UAN]8[5mfobaMi:^o>YjP^AV_HiM4Yj=@ZJL9ZI; X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:2812 Date: 2004-08-18T22:37:08+02:00 List-Id: Hi, i have some questions regarding bitmanipulations: 1. I found bitwise "and", "or" and "xor" operations, but as far as I understand they are applicable only for modular types or packed boolean arrays. Is this correct? 2. I did not found shift and rotate operations. Did I miss something or are there really none? 3. When I want treat a value both as an integer and as a boolean array, how can i do this? In pascal I would use a tagless record like TYPE ov is record case boolean of true : i : integer; false : byte_array; end; end; Such overlay structures are not valid with Ada, so what do instead? thanks