078. Parenthesize a variable to copy it “on the fly”.#

topic: Basics

Note

This tip is a draft1.

Parenthesize a variable to copy it “on the fly” to avoid overlapping INTENT(IN) and INTENT(OUT) arguments, which is non-standard, for example writing

call double((i),i)

instead of

call double(i,i) ! bad if args are intent(in) and intent(out)



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.