Ada 编程/库/接口.Fortran
外观
此语言特性从 Ada 95 开始可用。
接口.Fortran 是 预定义语言环境 自 Ada 95 以来的一个单元。
with
Ada.Numerics.Generic_Complex_Types; -- see G.1.1pragma
Elaborate_All(Ada.Numerics.Generic_Complex_Types);package
Interfaces.Fortranis
pragma
Pure(Fortran);type
Fortran_Integeris
range
implementation-defined;type
Realis
digits
implementation-defined;type
Double_Precisionis
digits
implementation-defined;type
Logicalis
new
Boolean;package
Single_Precision_Complex_Typesis
new
Ada.Numerics.Generic_Complex_Types (Real);type
Complexis
new
Single_Precision_Complex_Types.Complex;subtype
Imaginaryis
Single_Precision_Complex_Types.Imaginary; i : Imaginaryrenames
Single_Precision_Complex_Types.i; j : Imaginaryrenames
Single_Precision_Complex_Types.j;type
Character_Setis
implementation-defined charactertype
;type
Fortran_Characteris
array
(Positiverange
<>)of
Character_Setwith
Pack;function
To_Fortran (Item :in
Character)return
Character_Set;function
To_Ada (Item :in
Character_Set)return
Character;function
To_Fortran (Item :in
String)return
Fortran_Character;function
To_Ada (Item :in
Fortran_Character)return
String;procedure
To_Fortran (Item :in
String; Target :out
Fortran_Character; Last :out
Natural);procedure
To_Ada (Item :in
Fortran_Character; Target :out
String; Last :out
Natural);end
Interfaces.Fortran;
外部示例
[编辑源代码]- 在以下位置搜索 示例:Rosetta 代码、GitHub (gists)、任何 Alire 包 或 此维基教科书。
- 在以下位置搜索与
Interfaces.Fortran
相关的 帖子:Stack Overflow、comp.lang.ada 或 任何与 Ada 相关的页面。
FSF GNAT
- 规格说明:i-fortra.ads
- 主体:i-fortra.adb
drake