Skip to main content

Annex B Interface to Other Languages

danger

This Reference Manual output has not been verified, and may contain omissions or errors. Report any problems on the tracking issue

1

This Annex describes features for writing mixed-language programs. General interface support is presented first; then specific support for C, COBOL, and Fortran is defined, in terms of language interface packages for each of these languages.

1.a
ramification

This Annex is not a “Specialized Needs” annex. Every implementation must support all nonoptional features defined here (mainly the package Interfaces).

Language Design Principles

1.b

Ada should have strong support for mixed-language programming.

Implementation Requirements

2/3

Support for interfacing to any foreign language is optional. However, an implementation shall not provide any optional aspect, attribute, library unit, or pragma having the same name as an aspect, attribute, library unit, or pragma (respectively) specified in the subclauses of this Annex unless the provided construct is either as specified in those subclauses or is more limited in capability than that required by those subclauses. A program that attempts to use an unsupported capability of this Annex shall either be identified by the implementation before run time or shall raise an exception at run time.

2.a/3
discussion

The intent is that the same rules apply for the optional parts of language interfacing as apply for Specialized Needs Annexes. See 1.1.3 for a discussion of the purpose of these rules.

Extensions to Ada 83

2.b

Much of the functionality in this Annex is new to Ada 95.

Wording Changes from Ada 83

2.c

This Annex contains what used to be RM83-13.8.

Wording Changes from Ada 2005

2.d/3

Moved the clarification that interfacing to foreign languages is optional and has the same restrictions as a Specialized Needs Annex here.