164. Changing a loop index within a loop is invalid.#
topic: Loops
Note
This tip is a draft1.
Changing the loop index within a loop is not allowed, but a compiler may not catch it if it happens in another procedure. It is safer to pass a loop index only to procedures where it is an INTENT(IN) argument.
Changing the loop index within a loop is not allowed, but a compiler may not catch it if it happens in another procedure. It is safer to pass a loop index only to procedures where it is an INTENT(IN) argument.pic.twitter.com/RaDHvxsvrv
— FortranTip (@fortrantip) March 24, 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.