Menu

operators-nor

Will Pittenger

Meant for boolean NOR 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 nor operator for you. In order for nor 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 nor override.

Typical prototype

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

Built-in implementation for the boolean type

operator nor 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-not
Wiki: operators-or
Wiki: operators-xnor
Wiki: operators-xor