[comp.os.vms] Xor in lisp

saganich%frodo.DECnet@MGHCCC.HARVARD.EDU ("FRODO::SAGANICH") (03/12/88)

Hi all,


    I regretted sending that message about `xor' in lisp the moment my 
finger hit the return.  What I am looking for is not the logical xor 
that returns t or nil but the bitwise xor that returns the result of 
xoring the binary representations of a and b and returns the numeric result.
IE.
    	       using the truth table
13 = 1101      |xor |0|1|
 8 = 1000      ---------|
xor------      |   0|0|1|
 5 = 0101      ---------|
    	       |   1|1|0|
               ----------

just like the `|' operator of C


Thanks,

Al Saganich
saganich%frodo.decnet@mghccc.harvard.edu
------