FORTRAN 77 Language Reference

MAP

The MAP @ declaration defines alternate groups of fields in a union.


       MAP
              field-declaration 
              
              [field-declaration
]
       END MAP

Description

Each field declaration can be one of the following:

Example

Example: MAP:


       STRUCTURE /STUDENT/ 
       CHARACTER*32  NAME 
              INTEGER*2  CLASS 
              UNION 
                     MAP 
                            CHARACTER*16 MAJOR 
                     END MAP 
                     MAP 
                            INTEGER*2  CREDITS 
                            CHARACTER*8  GRAD_DATE 
                     END MAP 
              END UNION 
       END STRUCTURE