Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

value or reference?

Status
Not open for further replies.

bobo12

Programmer
Dec 26, 2004
74
US
hi,
are fortran values passed from program scope to CALL ...Subroutine by value or by reference?
 
Fortran IV (and F77) rule was by deferred (?) reference. All parameters changes may come into force after return from subroutine. It was unsafe manner to bind in/out parameters to common block members. For example, IBM Fortrans conformed to the rule.
Alas, I don't know if this rule remains intact in modern Fortrans (90+)...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top