Ada Programming/Pragmas/Import

Summary
The pragma Import directs the compiler to use code or data objects written in a foreign computer language.

Which foreign languages are supported depends on the compiler implementation. Typically C, C++, Cobol, and Fortran are supported.

Example
my_C_function { 1; }

My_C_Function Integer; (Convention   => C,    Entity        => My_C_Function,    External_Name => "my_C_function" ); ... Some_Variable := My_C_Function;

Wikibook

 * Ada Programming
 * Ada Programming/Pragmas
 * Ada Programming/Pragmas/Export
 * Ada Programming/Pragmas/Convention
 * Ada Programming/Pragmas/Linker_Options
 * Ada Programming/Pragmas/Interface (obsolescent)

|Import Import Import