Next: , Previous: RM B 4 95-98 Interfacing with COBOL, Up: Implementation Advice


6.42 RM B.5(22-26): Interfacing with Fortran

"An Ada implementation should support the following interface correspondences between Ada and Fortran:"

Followed.

"An Ada procedure corresponds to a Fortran subroutine."

Followed.

"An Ada function corresponds to a Fortran function."

Followed.

"An Ada parameter of an elementary, array, or record type T is passed as a T argument to a Fortran procedure, where T is the Fortran type corresponding to the Ada type T, and where the INTENT attribute of the corresponding dummy argument matches the Ada formal parameter mode; the Fortran implementation's parameter passing conventions are used. For elementary types, a local copy is used if necessary to ensure by-copy semantics."

Followed.

"An Ada parameter of an access-to-subprogram type is passed as a reference to a Fortran procedure whose interface corresponds to the designated subprogram's specification."

Followed.