Contents   Index   Previous   Next


J.2 Allowed Replacements of Characters

Syntax

1
The following replacements are allowed for the vertical line, number sign, and quotation mark characters:
2
3
3.a
To be honest: The intent is that such a replacement works in the Value and Wide_Value attributes, and in the Get procedures of Text_IO, so that things like ``16:.123:'' is acceptable.
4
5
These replacements do not change the meaning of the program.
5.a
Reason: The original purpose of this feature was to support hardware (for example, teletype machines) that has long been obsolete. The feature is no longer necessary for that reason. Another use of the feature has been to replace the vertical line character (|) when using certain hardware that treats that character as a (non-English) letter. The feature is no longer necessary for that reason, either, since Ada 95 has full support for international character sets. Therefore, we believe this feature is no longer necessary.
5.b
Users of equipment that still uses | to represent a letter will continue to do so. Perhaps by next the time Ada is revised, such equipment will no longer be in use.
5.c
Note that it was never legal to use this feature as a convenient method of including double quotes in a string without doubling them -- the string literal:
5.d
%"This is quoted."%
5.e
is not legal in Ada 83, nor will it be in Ada 95. One has to write:
5.f
"""This is quoted."""

Contents   Index   Previous   Next   Legal