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,9dec3ff1604723d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!news.cs.univ-paris8.fr!news.zanker.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-text.cableinet.net!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.4.030702.0 Subject: Re: Bitmanipulation in Ada From: "(see below)" Newsgroups: comp.lang.ada Message-ID: References: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Wed, 18 Aug 2004 21:14:29 GMT NNTP-Posting-Host: 82.41.185.234 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-text.cableinet.net 1092863669 82.41.185.234 (Wed, 18 Aug 2004 22:14:29 BST) NNTP-Posting-Date: Wed, 18 Aug 2004 22:14:29 BST Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: g2news1.google.com comp.lang.ada:2816 Date: 2004-08-18T21:14:29+00:00 List-Id: On 18/8/04 9:37 pm, in article Xns9549E5E9CFFB1BerndSpechgmxcom@151.189.20.10, "Bernd Specht" wrote: > 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? Such usages are not valid in (ISO Standard) Pascal either, but you don't let that stop you. 8-) -- Bill Findlay chez blueyonder.co.uk