From: john@nospam.demon.co.uk (John McCabe)
Subject: Re: Bitwise XOR?
Date: Thu, 2 Oct 2003 09:01:10 +0000 (UTC)
Date: 2003-10-02T09:01:10+00:00 [thread overview]
Message-ID: <3f7be99c.3710575@news.btclick.com> (raw)
In-Reply-To: mailman.23.1065059855.25614.comp.lang.ada@ada-france.org
On Wed, 01 Oct 2003 21:03:37 -0500, sk <noname@myob.com> wrote:
>"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;
For the record....
http://www.adaic.org/standards/95lrm/html/RM-4-5-1.html#I2480
Best Regards
John McCabe
To reply by email replace 'nospam' with 'assen'
next prev parent reply other threads:[~2003-10-02 9:01 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
2003-10-02 9:01 ` John McCabe [this message]
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