From: sk <noname@myob.com>
To: comp.lang.ada@ada-france.org
Subject: Re: Bitwise XOR?
Date: Wed, 01 Oct 2003 21:03:37 -0500
Date: 2003-10-01T21:03:37-05:00 [thread overview]
Message-ID: <mailman.23.1065059855.25614.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: nhLeb.476768$Oz4.309292@rwcrnsc54
"David N. Maez" <sellout@dharmadevil.com>:
> ...
Try using modular types.
with Ada.Text_IO; use Ada.Text_IO;
procedure foobar is
type Unsigned_32 is mod 2 ** 32;
x,y : Unsigned_32;
begin
x := 12;
y := 23;
x := x xor y;
put_line(x'img);
end foobar;
--
-------------------------------------------------
-- Merge vertically for real address
--
-- s n p @ t . o
-- k i e k c c m
-------------------------------------------------
next prev parent reply other threads:[~2003-10-02 2:03 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 1:35 Bitwise XOR? David N. Maez
2003-10-02 2:03 ` sk [this message]
2003-10-02 9:01 ` John McCabe
2003-10-02 8:30 ` Adrian Knoth
2003-10-02 12:46 ` Marin David Condic
2003-10-02 12:53 ` Adrian Knoth
2003-10-02 18:15 ` Jeffrey Carter
2003-10-03 12:26 ` Marin David Condic
2003-10-03 20:32 ` Jeffrey Carter
2003-10-03 22:41 ` Marin David Condic
2003-10-03 3:14 ` Steve
-- strict thread matches above, loose matches on Subject: below --
2003-10-03 10:28 Beard, Frank Randolph CIV
2003-10-04 2:57 ` Steve
2003-10-04 3:07 ` Robert I. Eachus
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox