Here's my blog post about my project that allows directly #including C headers in D*

The summary is that, modulo bugs, things like this work:

    #include <stdio.h>
    void main() { printf("Hello world\n".ptr); }

So far it's successfully compiled whilst #including pthread, libcurl, openssl and others. The blog and the github README have more information, and feel free to reply to this with questions.

hacker news: It's in there somewhere, search around.


* Technically, "D + #include directives + C macros"

Reply via email to