< Ada Programming < Delimiters 
 
 
      
Ada. Time-tested, safe and secure.
Operator
Standard Operations
Arithmetic Addition
The "+" operator is defined as arithmetic addition for all numeric types.
function"+" (Left, Right : T)returnT;
Plus sign
The "+" operator is defined as arithmetic plus sign for all numeric types.
function"+" (Right : T)returnT;
Usage
A :constantFloat := +5.0; -- A is now 5.0 B :constantInteger := +5; -- B is also 5
Common Non-Standard Operations
Type Conversion
The operator plus sign is often used to create a type conversion operator:
function"+" (Left : T1)returnT2;
See also
Wikibook
Ada 95 Reference Manual
Ada 2005 Reference Manual
- 4.4 Expressions (Annotated)
- 4.5.3 Binary Adding Operators (Annotated)
- 4.5.4 Unary Adding Operators (Annotated)
| Ada Operators | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
 | 
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.