CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
Case: Pascal Design Choices
Expression is any ordinal type (int, boolean, char, enum)
Segments can be single or compound
Construct is encapsulated
Only one segment can be executed per execution of the construct
In Wirth's Pascal, result of an unrepresented control expression value is undefined (In 1984 ISO Standard, it is a runtime error)
Many dialects now have otherwise or else clause