How does D compare to Go when it comes to C interop?

Ali Çehreli via Digitalmars-d digitalmars-d at puremagic.com
Thu Dec 10 11:46:44 PST 2015


On 12/10/2015 09:24 AM, jmh530 wrote:
 > On Thursday, 10 December 2015 at 17:16:43 UTC, Gary Willoughby wrote:
 >>
 >> Some reading:
 >>
 >> https://dlang.org/spec/interfaceToC.html
 >> http://wiki.dlang.org/D_binding_for_C
 >
 > I can't recall if Ali's book has a section on this, but I'm not a fan of
 > those links.

Unfortunately no, I don't have that topic covered, other than brief 
mentions of extern(C), extern(C++), and pragma(mangle):

   http://ddili.org/ders/d.en/modules.html#ix_modules.linkage

   http://ddili.org/ders/d.en/pragma.html#ix_pragma.mangle,%20pragma

However, Mike Parker's book "Learning D" has more than 50 pages on 
"Connecting D with C":

   http://wiki.dlang.org/Books

Ali



More information about the Digitalmars-d mailing list