Previous: 2.2.6.4. Enumeration Types To the Table of Contents Next: 2.2.6.6. Real Types
2.2.6.4. Enumeration Types Table of Contents 2.2.6.6. Real Types

- 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;



Previous: 2.2.6.4. Enumeration Types To the Table of Contents Next: 2.2.6.6. Real Types
2.2.6.4. Enumeration Types Table of Contents 2.2.6.6. Real Types

- 2.2.6.5. -