- 2.2.6.5. -
Table of Contents
2. TMT Pascal Language Description
2.2. Pascal Language Structure
2.2.6. Types
2.2.6.5. Subrange Types
2.2.6.5. Subrange Types
Subrange types restrict the values allowed for a type. The subrange must
consist of ordinal type constants and the components of the range must
be of the same type. Subranges are defined as follows:
expression .. expression;
where the first expression is the lowest value of the range and the second
expression is the highest value. The following are examples of subranges:
type
Digits = '0'..'9';
Values = 0..$F;
- 2.2.6.5. -