Interfacing D with C and Fortran
data pulverizer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 4 10:22:53 PDT 2017
On Tuesday, 4 April 2017 at 16:20:56 UTC, bachmeier wrote:
> Unless I missed it, there is no mention of iso_c_binding for
> Fortran. That is worth at least a mention, because
>
> - It is documented well and handles many of the underlying
> details.
> - It creates a C interface that can then be called from D like
> a C function.
> - The target audience of this article includes C programmers
> already calling into Fortran using iso_c_binding. There's no
> reason for them to think they have to learn something new to
> switch to D.
>
> I haven't used Fortran in some time, but when I did call it
> from C, iso_c_binding was very helpful.
Fair point. I was in two minds about mentioning this because
Fortran programmers will already know about it but including it
is probably the right thing.
More information about the Digitalmars-d
mailing list