content_image/710955.jpg
MS: MaritalStatus 

This frequent situation can be abbreviated by including the declaration of the discriminating component - the so-called tag field - in the case clause itself, i.e., by writing 

case MS: MaritalStatus of 

It is helpful to "outline" the information about a person before defining it as a variant record structure. 

1. Person 

A. name (last, first) 

B. height (natural number) 

C. sex (male, female) 

D. date of birth (year, month, day) 

E. number of dependents (natural number) 

F. marital status 

if married, widowed 

a. date of marriage (year, month, day) 

if divorced 

a. date of divorce (year, month, day) 

b. first divorce (false, true) 

if single 

Figure 7.g is a corresponding picture of two "sample" people with different attributes. 

<img src='content_image/710955.jpg'>

