www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - D interface to Fortran

reply "TJB" <broughtj gmail.com> writes:
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?

Thanks,

TJB
Jun 04 2012
next sibling parent Jonathan M Davis <jmdavisProg gmx.com> writes:
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
Jun 04 2012
prev sibling parent sclytrack <sclytrack iq87.fr> writes:
On 06/05/2012 06:49 AM, 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?

 Thanks,

 TJB
scid https://github.com/cristicbz/scid
Jun 04 2012