D as an extension language for C
jmh530
john.michael.hall at gmail.com
Sun May 14 23:39:36 UTC 2023
On Saturday, 13 May 2023 at 18:09:33 UTC, Walter Bright wrote:
> [snip]
> Perhaps I haven't clarified the purpose of ImportC.
>
> D was designed from the beginning to leverage off of existing C
> code. D's foreign function interface with C is excellent.
>
> But D itself cannot read C .h files nor .c files (a capability
> that C++ has and has used to great advantage). .h files must be
> laboriously converted to D. We've done a lot of the usual
> system .h files conversions, such as core.stdc.stdio, they are
> in druntime.
>
> [snip]
>
> To do a home run, the compiler needs to understand C code
> directly - this is ImportC.
> [snip]
Is ImportC the final destination? Or is ImportC a step along the
way to a final destination?
More information about the Digitalmars-d
mailing list