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!

Using RECORD and TYPE interchangeably 1

Status
Not open for further replies.

4tran

Programmer
Feb 12, 2010
2
US
I have some old Fortran 77 code that defines aggregate data types using the RECORD keyword, and subroutines which accept parameters of that type by declaring them as

RECORD /foo_record/ foo

Can I write new Fortran 95 subroutines which accept parameters of those types by declaring them using the TYPE keyword as

TYPE (foo_record) foo

while keeping the old definitions using the RECORD keyword? The reason I want to use TYPE instead of RECORD for subroutine parameter declaration is that I can use TYPE in conjunction with INTENT to achieve some measure of protection similar to the one provided by C++'s const keyword.
 
You can keep them although it would be better to convert them to to types as recommended in the Intel Help documentation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top