Interfacing D with C and Fortran
bachmeier via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 4 09:20:56 PDT 2017
On Tuesday, 4 April 2017 at 13:25:27 UTC, data pulverizer wrote:
> Hi All,
>
> @9il and I have written a D blog article titled "Interfacing D
> with C and Fortran" which is located here:
> https://github.com/dataPulverizer/interface-d-c-fortran. We
> would greatly appreciate feedback from the D community before
> we publish it.
>
> Many thanks in advance.
>
> DP
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.
More information about the Digitalmars-d
mailing list