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 <[email protected]> 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

Reply via email to