| United States-English |
|
|
|
![]() |
HP Fortran 90 Programmer's Reference: HP Fortran 90 Programmer's Reference > Chapter 7 Program units and proceduresBlock data program unit |
|
A block data program unit initializes data values in common blocks. The syntax of a block data program unit is:
If a USE statement appears in a block data program unit, it makes only the named constants accessible to the program unit. The block data program unit can initialize more than one common block. However, a common block can be initialized in only one block data program unit. It is not necessary to initialize every object within the common block, but the common block must be completely specified. As an extension, HP Fortran 90 allows the initialization of objects in blank—or unnamed—common. The following example illustrates this extension:
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||