- 2.2.6.5 -
TMT Pascal Language Description
Pascal Language Structure
TypesSubrange 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;
|
|
|
Enumeration Types |
Table of Content |
Real Types |
- 2.2.6.5 -