calling from C into D

BCS ao at pathlink.com
Fri Aug 7 12:03:26 PDT 2009


Reply to Aaron,

> Ok, next question:  If I wanted to run some D stuff under
> the Apache web server in embedded mode I would have to
> be able to write some C code which calls into D code.
> This topic is not discussed in the docs that I can find.
> Is it possible to call from C into D (to embedded D code into a larger
> process written in C)?  You can't do this in java and this is one of
> the reasons I always was averse to java from the beginning.
> 
> Thanks again, -- Aaron Watters
> 

you need to create the header files by hand but you can call from C code 
to D functions that are extern(C).





More information about the Digitalmars-d mailing list