142. ASSOCIATE is preferred over POINTER to create an alias because POINTER can inhibit optimization.#
topic: Associate
Note
This tip is a draft1.
Although ASSOCIATE of Fortran 2003 and POINTER of Fortran 90 can both create an alias for a derived type component or an array section, ASSOCIATE is now preferred since the use of POINTER can inhibit optimization.
Although ASSOCIATE of Fortran 2003 and POINTER of Fortran 90 can both create an alias for a derived type component or an array section, ASSOCIATE is now preferred since the use of POINTER can inhibit optimization.pic.twitter.com/n39lBNhTEz
— FortranTip (@fortrantip) March 4, 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.