Logical vs bitwise operators

Andrew Klossner andrew at orca.UUCP
Mon Nov 26 08:23:55 AEST 1984


If we're going to have the ^^ operator as a logical version of bitwise
^, then we simply must have a logical version of the equivalence (EQV)
operator, ==.

Following the existing convention, it will be spelled ====.  Thus:

	(a====b) is equivalent to ((a!=0) == (b!=0))

(-:    or we could spell ^^ as !=!=    :-)

  -- Andrew Klossner   (decvax!tektronix!orca!andrew)       [UUCP]
                       (orca!andrew.tektronix at csnet-relay)  [ARPA]



More information about the Comp.lang.c mailing list