comp.lang.ada
 help / color / mirror / Atom feed
From: lutz@iks-jena.de (Lutz Donnerhacke)
Subject: Re: bitwise operations in Ada95
Date: Wed, 18 Jul 2001 09:50:41 +0000 (UTC)
Date: 2001-07-18T09:50:41+00:00	[thread overview]
Message-ID: <slrn9lamp5.hr.lutz@taranis.iks-jena.de> (raw)
In-Reply-To: 9j2p76$6is$1@fang.dsto.defence.gov.au

* 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.



  parent reply	other threads:[~2001-07-18  9:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-18  1:28 bitwise operations in Ada95 Vladimir Bednikov
2001-07-18  2:43 ` tmoran
2001-07-18  9:50 ` Lutz Donnerhacke [this message]
2001-07-18 15:42   ` Aquaman
2001-07-18 16:09     ` Jacob Sparre Andersen
2001-07-19  9:03       ` Jacob Sparre Andersen
2001-07-18 20:17     ` Sune Falck
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox