Ada Programming/Delimiters/+


Ada. Time-tested, safe and secure.
Ada. Time-tested, safe and secure.

OperatorEdit

Standard OperationsEdit

Arithmetic AdditionEdit

The "+" operator is defined as arithmetic addition for all numeric types.

function "+" (Left, Right : T) return T;

Plus signEdit

The "+" operator is defined as arithmetic plus sign for all numeric types.

function "+" (Right : T) return T;
UsageEdit
A : constant Float   := +5.0;  -- A is now 5.0
B : constant Integer := +5;    -- B is also 5

Common Non-Standard OperationsEdit

Type ConversionEdit

The operator plus sign is often used to create a type conversion operator:

function "+" (Left : T1) return T2;

See alsoEdit

WikibookEdit

Ada 95 Reference ManualEdit

Ada 2005 Reference ManualEdit



Ada Operators
and and then > + abs &
or or else >= - mod
xor = < * rem in
not /= <= ** / not in