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.
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.