141. Pointer assignment and ASSOCIATE can create shallow copies.#
topic: Associate
Note
This tip is a draft1.
A pointer assignment or ASSOCIATE with the RHS a variable can create shallow copies where changes in one variable affect another. Normal assignment or ALLOCATE with SOURCE creates a deep copy. Created with @carbon_app
A pointer assignment or ASSOCIATE with the RHS a variable can create shallow copies where changes in one variable affect another. Normal assignment or ALLOCATE with SOURCE creates a deep copy.
— FortranTip (@fortrantip) March 3, 2022
Created with @carbon_app pic.twitter.com/7FPHzH0uX2
- 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.