D modules referenced by C source?

BCS ao at pathlink.com
Wed May 6 16:24:57 PDT 2009


Reply to Matt,

> don't know how to include the module in the C source. I can see how it
> would work from the D side of the compilation, but how would I go
> about making the const values visible to the C code? Do I just
> #include "
> 

The best approach might be to write a .h file with only the constants in 
it and then use htod to convert it into a .d header. Aside from that you 
would end up hand editing bith files.





More information about the Digitalmars-d mailing list