Skip to main content

Unterbereichstypen

  • Chapter
Programmieren in Modula-2

Part of the book series: Springer Compass ((SC))

  • 57 Accesses

Zusammenfassung

Ist von einer Variablen bekannt (bzw. nimmt man dies an), daß sie nur Werte innerhalb eines gewissen zusammenhängenden Bereichs annehmen darf, so läßt sich dies durch Deklaration eines sog. Unterbereichstyps (subrange type) ausdrücken. Nehmen wir zum Beispiel an, daß eine Variable i nur die Werte von 1 bis (einschließlich) N annehmen darf. Wir deklarieren dann:

  • TYPE S = [1 .. N]

  • VAR i: S

(dies kann natürlich zu VAR i: [1.. N] abgekürzt werden).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 54.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1991 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Wirth, N. (1991). Unterbereichstypen. In: Programmieren in Modula-2. Springer Compass. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-662-00116-5_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-662-00116-5_17

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-662-00117-2

  • Online ISBN: 978-3-662-00116-5

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics