CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Evaluation of Ordinal Types
Aid readability and writeability
Improve reliability--restricted ranges add error detection abilitiy
Implementation of user-defined ordinal types:
Enumeration types are implemented as integers
Subrange types are the parent types; code may be inserted (by the compiler) to restrict assignments to subrange variables