< Ada Programming < Libraries 
 
 
      
Ada. Time-tested, safe and secure.
This language feature is available from Ada 95 on. Interfaces.Fortran is a unit of the Predefined Language Environment since Ada 95.
Specification
withAda.Numerics.Generic_Complex_Types; -- see G.1.1pragmaElaborate_All(Ada.Numerics.Generic_Complex_Types);packageInterfaces.FortranispragmaPure(Fortran);typeFortran_Integerisrangeimplementation-defined;typeRealisdigitsimplementation-defined;typeDouble_Precisionisdigitsimplementation-defined;typeLogicalisnewBoolean;packageSingle_Precision_Complex_TypesisnewAda.Numerics.Generic_Complex_Types (Real);typeComplexisnewSingle_Precision_Complex_Types.Complex;subtypeImaginaryisSingle_Precision_Complex_Types.Imaginary; i : ImaginaryrenamesSingle_Precision_Complex_Types.i; j : ImaginaryrenamesSingle_Precision_Complex_Types.j;typeCharacter_Setisimplementation-defined charactertype;typeFortran_Characterisarray(Positiverange<>)ofCharacter_SetwithPack;functionTo_Fortran (Item :inCharacter)returnCharacter_Set;functionTo_Ada (Item :inCharacter_Set)returnCharacter;functionTo_Fortran (Item :inString)returnFortran_Character;functionTo_Ada (Item :inFortran_Character)returnString;procedureTo_Fortran (Item :inString; Target :outFortran_Character; Last :outNatural);procedureTo_Ada (Item :inFortran_Character; Target :outString; Last :outNatural);endInterfaces.Fortran;
See also
Wikibook
External examples
- Search for examples of Interfaces.Fortranin: Rosetta Code, GitHub or this Wikibook.
- Search for any post related to Interfaces.Fortranin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
Ada 95
Ada 2005
Ada 2012
Open-Source Implementations
FSF GNAT
- Specification: i-fortra.ads
- Body: i-fortra.adb
drake
- Specification: numerics/i-fortra.ads
- Body: numerics/i-fortra.adb
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.