ATTRIBUTES ALLOCATABLE

The ATTRIBUTES directive option ALLOCATABLE is provided for compatibility with older programs. It lets you delay allocation of storage for a particular declared entity until some point at run time when you explicitly call a routine that dynamically allocates storage for the entity. The ALLOCATABLE option takes the following form:

Syntax

cDEC$ ATTRIBUTES ALLOCATABLE :: entity

c

Is one of the following: C (or c), !, or *. (See Syntax Rules for Compiler Directives.)

entity

Is the name of the entity that should have allocation delayed.

The recommended method for dynamically allocating storage is to use the ALLOCATABLE statement or attribute.