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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ded6ba3fc5b87b66 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-10-24 21:42:24 PST Path: supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!news.tele.dk!193.190.198.17!newsfeeds.belnet.be!news.belnet.be!btnet-peer1!btnet-peer0!btnet!news5-gui.server.ntli.net!ntli.net!news2-win.server.ntlworld.com.POSTED!not-for-mail Message-ID: <39F66541.E7555858@virgin.net> From: Julian Morrison X-Mailer: Mozilla 4.74 [en] (X11; U; Linux 2.2.16-3 i586) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: First time Ada has let me down References: <8FD7DEBEEsynoptikdamudderfuck@news> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 25 Oct 2000 05:44:49 +0100 NNTP-Posting-Host: 62.252.40.7 X-Complaints-To: abuse@virgin.net X-Trace: news2-win.server.ntlworld.com 972448938 62.252.40.7 (Wed, 25 Oct 2000 05:42:18 BST) NNTP-Posting-Date: Wed, 25 Oct 2000 05:42:18 BST Organization: Virgin Net Usenet Service Xref: supernews.google.com comp.lang.ada:1537 Date: 2000-10-25T05:44:49+01:00 List-Id: Shifty wrote: > [can't flip bits] This is from Ada 95, so I dunno if it will work in 83. Anyway, some thoughts. First, bitwise stuff works with modular numbers, you may be able to just cast it across. Failing that, Ada.Unchecked_Conversion is your friend - convert it to a packed array of boolean, and slice out the bits you need.