Menu

operators-nand

Will Pittenger

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

Typical prototype

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

Built-in implementation for the boolean type

operator nand var boolean bLeft, var boolean bRight
  returns boolean

Related

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