2.5 Character Literals
danger
This Reference Manual output has not been verified, and may contain omissions or errors. Report any problems on the tracking issue
[A character_literal
is formed by enclosing a graphic character between two apostrophe characters.]
Syntax
2
3
NOTE A character_literal
is an enumeration literal of a character type. See 3.5.2.
Examples
4Examples of character literals:
'A' '*' ''' ' '
'L' 'Л' 'Λ' -- Various els.
'∞' 'א' -- Big numbers - infinity and aleph.
Wording Changes from Ada 83
5.a/3
The definitions of the values of literals are in Clauses 3 and 4, rather than here, since it requires knowledge of types.