Ada Programming/Keywords/xor

Boolean operator
X : Boolean := A = 10 B = 10;

Boolean operator on arrays
The xor operation is applied to each boolean inside the array.

Day_Of_Month  1 .. 31;             Month_Array   (Day_Of_Month)  Boolean; X : Month_Array := Function_1; Y : Month_Array := Function_2; Z : Month_Array := X Y;

Bitwise operator
The operator xor could be used with modular types and also with boolean arrays to perform bitwise operations.

Wikibook

 * Ada Programming
 * Ada Programming/Keywords
 * Ada Programming/Operators

Ada Quality and Style Guide




|Xor