www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Wrapping D library with a C API

reply "chaoskampf" <chaoskampf1234567654321 gmail.com> writes:
Is it possible to expose a C interface from a D library? I think 
this is one of the really powerful features of C++. It allows 
bindings to be written for basically every other language.
Jul 14 2014
parent "Chris" <wendlec tcd.ie> writes:
On Monday, 14 July 2014 at 13:25:46 UTC, chaoskampf wrote:
 Is it possible to expose a C interface from a D library? I 
 think this is one of the really powerful features of C++. It 
 allows bindings to be written for basically every other 
 language.
D and C can interface both ways: http://dlang.org/interfaceToC.html PS Your question should be posted under D.learn http://forum.dlang.org/group/digitalmars.D.learn
Jul 14 2014