030. Specify function and subroutine intent
s#
topic: Procedures
Function and subroutine argument intent
s were introduced in the Fortran 90 standard.
Much Fortran code does not specify intents, which is legal, but all new code should.
Arguments should be intent(in)
or intent(out)
unless intent(in out)
is necessary.
Function and subroutine argument INTENTs were introduced in the Fortran 90 standard. Much Fortran code does not specify intents, which is legal, but all new code should. Arguments should be intent(in) or intent(out) unless intent(in out) is necessary.
— FortranTip (@fortrantip) December 19, 2021