148. Pointer should be initialized to null() to avoid undefined association status.#
topic: Pointers
Note
This tip is a draft1.
Whether a pointer is initially ASSOCIATED is undefined, unless the pointer is initialized to null(), which makes it not associated. This is recommended. A pointer becomes associated by being allocated or by being given a target.
Whether a pointer is initially ASSOCIATED is undefined, unless the pointer is initialized to null(), which makes it not associated. This is recommended. A pointer becomes associated by being allocated or by being given a target.pic.twitter.com/D8eBKzMZ0i
— FortranTip (@fortrantip) March 9, 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.