171. Error in READ statement causes all variables to become undefined.#
topic: Input and Output
Note
This tip is a draft1.
If there is an error in a READ statement, all read items become undefined, although most compilers will update only the variables that can be read. The safe approach is to read temporary variables and set variables to them when READ is successful.
If there is an error in a READ statement, all read items become undefined, although most compilers will update only the variables that can be read. The safe approach is to read temporary variables and set variables to them when READ is successful. pic.twitter.com/viXblw7sEp
— FortranTip (@fortrantip) March 30, 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.