CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Ada Discriminated Unions
Reasons they are safer than Pascal & Modula-2:
Tag must be present
All assignments to the union must include the tag value--tag cannot be assigned by itself
It is impossible for the user to create an inconsistent union