Logical vs bitwise operators

Dan Messinger dan at digi-g.UUCP
Wed Nov 28 00:36:04 AEST 1984


In article <1181 at orca.UUCP> andrew at orca.UUCP (Andrew Klossner) writes:
>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 !=!=    :-)

Ah, but a====b is easily expressed as !(a^^b).   :-)

(I can be as ridiculous as the next guy)
Dan Messinger
ihnp4!umn-cs!digi-g!dan



More information about the Comp.lang.c mailing list