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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,afb6e61f9b1678d1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-01 18:35:16 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!wn14feed!wn13feed!wn11feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi_feed4!attbi.com!rwcrnsc54.POSTED!not-for-mail From: "David N. Maez" Newsgroups: comp.lang.ada Subject: Bitwise XOR? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Message-ID: NNTP-Posting-Host: 24.98.11.249 X-Complaints-To: abuse@comcast.net X-Trace: rwcrnsc54 1065058515 24.98.11.249 (Thu, 02 Oct 2003 01:35:15 GMT) NNTP-Posting-Date: Thu, 02 Oct 2003 01:35:15 GMT Organization: Comcast Online Date: Thu, 02 Oct 2003 01:35:15 GMT Xref: archiver1.google.com comp.lang.ada:91 Date: 2003-10-02T01:35:15+00:00 List-Id: I'm new to Ada, and I'm wondering what the bitwise (not logical) Exclusive Or function is? Using Gnat, this fails to compile: with Ada.Text_IO; use Ada.Text_IO; procedure foobar is x : integer; y : integer; begin x := 12; y := 23; x := x xor y; put_line(x'img); end foobar; Gnat complains: foobar.adb:9:10: invalid operand types for operator "xor" foobar.adb:9:10: left operand has type "Standard.integer" foobar.adb:9:10: right operand has type "Standard.integer" What am I missing?