An existing module, apparently written for Intel Fortran, for interfacing to a DLL uses derived types containing only an integer as an argument for functions or procedures as well as the result of functions.
MODULE intdll
IMPLICIT NONE
TYPE dt
INTEGER i
END TYPE
INTERFACE
TYPE(dt) FUNCTION xxx(k)
!DEC$ATTRIBUTES C, DLLIMPORT, ALIAS:'_xxxA':: xxx
IMPORT
TYPE(dt) k
END FUNCTION
END INTERFACE
END MODULE intdll
Is there a particular reason for using such a derived type?
Is there another (better) way than remplacing this derived type with an integer and suppressing the IMPORT statement when using FTN95?