Ada Programming/Delimiters/+
(Redirected from Ada Programming/Operators/+)
Operator
editStandard Operations
editArithmetic Addition
editThe "+" operator is defined as arithmetic addition for all numeric types.
function
"+" (Left, Right : T)return
T;
Plus sign
editThe "+" operator is defined as arithmetic plus sign for all numeric types.
function
"+" (Right : T)return
T;
Usage
editA :constant
Float := +5.0; -- A is now 5.0 B :constant
Integer := +5; -- B is also 5
Common Non-Standard Operations
editType Conversion
editThe operator plus sign is often used to create a type conversion operator:
function
"+" (Left : T1)return
T2;
See also
editWikibook
edit- Ada Programming
- Ada Programming/Delimiters
- Ada Programming/Operators
- Ada Programming/Mathematical calculations
Ada 95 Reference Manual
edit- 4.4 Expressions (Annotated)
- 4.5.3 Binary Adding Operators (Annotated)
- 4.5.4 Unary Adding Operators (Annotated)
Ada 2005 Reference Manual
edit- 4.4 Expressions (Annotated)
- 4.5.3 Binary Adding Operators (Annotated)
- 4.5.4 Unary Adding Operators (Annotated)
Ada Operators | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|