Ada Programming/Libraries/Interfaces.Fortran
Appearance
This language feature is available from Ada 95 on.
Interfaces.Fortran is a unit of the Predefined Language Environment since Ada 95.
Specification
[edit | edit source]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
[edit | edit source]Wikibook
[edit | edit source]External examples
[edit source]- Search for examples of
Interfaces.Fortranin: Rosetta Code, GitHub (gists), any Alire crate or this Wikibook. - Search for posts related to
Interfaces.Fortranin: Stack Overflow, comp.lang.ada or any Ada related page.
Ada Reference Manual
[edit | edit source]Ada 95
[edit | edit source]Ada 2005
[edit | edit source]Ada 2012
[edit | edit source]Open-Source Implementations
[edit | edit source]FSF GNAT
- Specification: i-fortra.ads
- Body: i-fortra.adb
drake
- Specification: numerics/i-fortra.ads
- Body: numerics/i-fortra.adb
