Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!comp.vuw.ac.nz!tribble From: John.Matthews@comp.vuw.ac.nz (John Matthews) Newsgroups: comp.lang.modula2 Subject: Re: Bitwise EXOR Message-ID: <1990Oct01.012654.7215@comp.vuw.ac.nz> Date: 1 Oct 90 01:26:54 GMT References: <3356@mindlink.UUCP> Sender: news@comp.vuw.ac.nz (News Admin) Reply-To: tribble@comp.vuw.ac.nz (John Matthews) Organization: Computer Science Dept, Victoria Univ, Wellington, NEW ZEALAND Lines: 12 Nntp-Posting-Host: barretts.comp.vuw.ac.nz Originator: tribble@barretts.comp.vuw.ac.nz I have an idea that in Modula-2 speak, XOR is represented as Symmetrical Difference (of set types). Convert whatever to a set type, eg BitSet, then a = b XOR c is equal to a = b / c; Try It.