Ada '83 Rationale, Sec 7.5: The Ability to Inherit Literals
"Rationale for the Design of the
Ada® Programming Language"
[Ada '83 Rationale, HTML Version]
CHAPTER 7: Derived Types
With derivation, it is possible to define new types that inherit the
implicit conversions of numeric literals but have different
operations.
For example, modulo arithmetic can be declared by means of a type
derived from an integer type. Modulo operations that hide the
inherited operations can be declared, yet integer literals can still
be used.
NEXT
PREVIOUS
UP
TOC
INDEX
Address any questions or comments to
adainfo@sw-eng.falls-church.va.us.