191. Derived type array sections are allowed before or after the % component selector, but not in both places.#

topic: Derived types

Note

This tip is a draft1.

For an array of derived types that have array components, you can refer to an array section at either level, but both array sections cannot have rank > 0. The array sections

t(1:n)%c(1) t(1)%c(1:2)

are valid for array component c(:) but not

t(1:n)%c



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.