Paradox about D's popularity.

Sean Kelly sean at invisibleduck.org
Thu Sep 22 08:45:32 PDT 2011


Ideally, you also want to simply convert #ifdefs to static ifs as well. It's details like this that have convinced me I can manually convert headers in less time than it takes me to manually post-process the result of an automatic translator. Sad. 

Sent from my iPhone

On Sep 21, 2011, at 2:33 PM, Dmitry Olshansky <dmitry.olsh at gmail.com> wrote:

> On 22.09.2011 1:14, Gor F. Gyolchanyan wrote:
>> I had an idea of a D library for including C headers for a while now.
>> All i need is to make a compile-time C parser for that. This thing would literally
>> remove any need for binding.
> 
> Translating header file is a one-time job, as in
> sh-$: translate fancy.h fancy.di
> 
> Why would you need to do it at compile time, except because it's fancy :), I don't quite get.
> 
> And, as much as I'm sorry to bring bad news, you'd have to make a C preprocessor as well (or even in the first place). Then you'd have to struggle through vendor extensions but that's doable.
> 
> 
> 
> -- 
> Dmitry Olshansky


More information about the Digitalmars-d mailing list