411 REFERENCE · Wikibooks
Ada Programming/Pragmas/Interface
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Pragmas Interface
__TOC__
pragma Interface (language_name, subprogram_name);
Summary
Interface is an Ada 83 interfacing pragma equivalent to pragma Import. However, it can be used just for subprograms while pragma Import allows also interfacing with global variables.
Some compilers for recent versions of the language still allow this pragma, but treat it just like pragma Import. In older code, pragma Import was usually followed by the implementation-defined pragma Interface_Name to specify the external name of the subprogram.
It is worth noting that "interface" is a new Ada 2005 keyword. However, a special exception is made in the standard to allow it as a pragma identifier for backwards compatibility. Ada 2005 Reference Manual
J 12 Pragma Interface
See also
Wikibook
Ada Programming
Ada Programming/Pragmas
Ada Programming/Pragmas/Import
Ada Programming/Pragmas/Export
Ada Programming/Pragmas/Convention
Ada Programming/Pragmas/Linker_Options
Ada Programming/Pragmas/Interface_Name (implementation defined)
Ada Reference Manual
Ada 83
13 9 Interface to Other Languages
B Predefined Language Pragmas
Ada 2005
J 12 Pragma Interface
References
Interface
Interface
Interface