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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1eda8da8a6221ea7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-18 02:52:31 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.27.83.146!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: bitwise operations in Ada95 Date: Wed, 18 Jul 2001 09:50:41 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: <9j2p76$6is$1@fang.dsto.defence.gov.au> NNTP-Posting-Host: taranis.iks-jena.de X-Trace: branwen.iks-jena.de 995449841 6086 217.17.192.37 (18 Jul 2001 09:50:41 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Wed, 18 Jul 2001 09:50:41 +0000 (UTC) User-Agent: slrn/0.9.6.3 (Linux) Xref: archiver1.google.com comp.lang.ada:10140 Date: 2001-07-18T09:50:41+00:00 List-Id: * Vladimir Bednikov wrote: >Is there a way of performing bitwise operations on basic >types, e.g, integers, floats etc as in the bitwise and '&' and >bitwise or '|' in c. On (packed) arrays of boolean as well as on boolean or modular types you may use 'and', 'or', 'not' ... If you like to play with bits on other types you have to create a (non portable) view using Unchecked_Conversion or (portable) representation clauses.