Clicky

Fortran Wiki
RANK attribute

Proposal: Support “RANK(n)” as an alternative attribute to define deferred-size array dimensions. RANK(0) indicates a scalar entity, the same as if no RANK or DIMENSION attribute was given.

Rationale: The RANK syntax is less verbose, particularly for a large number of dimensions. It is also better suited for using generated code or macros to define interfaces.