fortran structure support in gcc4 (on redhat linux 4)
Paul Thomas
paulthomas2@wanadoo.fr
Wed Oct 18 18:11:00 GMT 2006
Tobias and Dennis,
>If I understood STRUCTURE correctly, it is the same as TYPE except that
>the sequence is guaranteed. If this is the case, replace
>
>STRUCTURE /s/
>integer :: i
>real :: r
>END STRUCTURE
>
>by the following ISO Fortran construct:
>
>TYPE s
>SEQUENCE ! This makes sure the order is kept
>integer :: i
>real :: i
>END TYPE
>
>Tobias
>
>
Yes, that's it. The Digital compiler had both - see
http://efrw01.frascati.enea.it/Software/Unix/Fortran/Digital_book_F90/lrm0641.htm#record_struc
for quite a nice description.
Paul
More information about the Fortran
mailing list