Contents | Prev | Next

8.2.8.2 not (bitwise)

Description

As an extension to Standard Pascal, Irie Pascal supports using the not operator with an operand of integral type to perform bitwise NOT. The result of the operation is calculated by flipping all the bits in the operand.

Example

   not 1      //results in -2
              //Since not 1 = not %00000000000000000000000000000001
              // which results in %11111111111111111111111111111110
              // or -2

Contents | Prev | Next