D interface to Fortran

Jonathan M Davis jmdavisProg at gmx.com
Mon Jun 4 22:01:45 PDT 2012


On Tuesday, June 05, 2012 06:49:55 TJB wrote:
> Is it possible to interace D with Fortran code?  There are old
> numerical codes that I would prefer to just call directly rather
> than rewrite them?

D interfaces with C code (and to some extent C++). C is the lingua franca of 
the programming world. You should be able to have Fortran and C code interact 
and have D code interact with the C code, thereby having the C be a bridge 
between the D and Fortran code. But D code cannot call Fortran code directly.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list