Previous: Enumeration Types To the Table of Content Next: Real Types

- 2.2.6.5 -
TMT Pascal Language Description
Pascal Language Structure
Types

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;



Previous: Enumeration Types To the Table of Content Next: Real Types
Enumeration Types Table of Content Real Types

- 2.2.6.5 -