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
