Ada 编程/库/接口.Fortran
外观
此语言特性从 Ada 95 开始可用。
接口.Fortran 是 预定义语言环境 自 Ada 95 以来的一个单元。
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;
外部示例
[编辑源代码]- 在以下位置搜索 示例:Rosetta 代码、GitHub (gists)、任何 Alire 包 或 此华夏公益教科书。
- 在以下位置搜索与
Interfaces.Fortran相关的 帖子:Stack Overflow、comp.lang.ada 或 任何与 Ada 相关的页面。
FSF GNAT
- 规格说明:i-fortra.ads
- 主体:i-fortra.adb
drake
