Advertisement

Enumerated and Subrange Types

  • Kathleen Jensen
  • Niklaus Wirth

Abstract

We have seen the predefined, simple type identifiers Boolean, char, integer and Real. By using these type identifiers you can refer to the existing types that they represent. We now show how new ordinal types can be created by two mechanisms: the enumerated type and the subrange type. The enumerated type creates a new type that is unrelated to any other type, while the subrange type creates a new type that has a subset of the values of another existing ordinal type.

Keywords

Type Color Relational Operator Closed Interval Programming Technique Memory Space 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer-Verlag New York, Inc. 1991

Authors and Affiliations

  • Kathleen Jensen
    • 1
  • Niklaus Wirth
    • 2
  1. 1.Digital Equipment CorporationOffice AutomationReadingEngland, UK
  2. 2.Institut fuer InformatikETH-ZentrumZurichSwitzerland

Personalised recommendations