Menu

operators-xnor

Will Pittenger

Meant for boolean XNOR operations. You don't need to override this operator. Just override and, or, and not. The compiler will automatically create a matching version of the xnor operator for you. In order for xor to be generated, the parameter types and return type for and and or must match each other. Furthermore, the parameter and return type of not must match those declared by and and or. The compiler will then copy those parameter and return types to the new xnor override.

Typical prototype

operator xnor var /TypeDescriptor1/ left, var /TypeDescriptor2/ right
  returns boolean

Built-in implementation for the boolean type

operator xnor var boolean bLeft, var boolean bRight
  returns boolean

Related

Wiki: Custom operators
Wiki: Operators
Wiki: operators-and
Wiki: operators-band
Wiki: operators-bnand
Wiki: operators-bnor
Wiki: operators-bnot
Wiki: operators-bor
Wiki: operators-bxnor
Wiki: operators-bxor
Wiki: operators-nand
Wiki: operators-nor
Wiki: operators-not
Wiki: operators-or
Wiki: operators-xor