227. Sequence association effectively lets you pass a pointer to an array element.#
topic: Array arguments
Note
This tip is a draft1.
With sequence association for explicit-shape and assumed-size arrays, you can pass a single array element to an array dummy argument to pass a pointer to a location in the array, as shown in the previous code. Restrictions are discussed at
With sequence association for explicit-shape and assumed-size arrays, you can pass a single array element to an array dummy argument to pass a pointer to a location in the array, as shown in the previous code. Restrictions are discussed at https://t.co/2EMAeNtUJB
— FortranTip (@fortrantip) May 31, 2022
- 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.