built in import c header files

jmh530 john.michael.hall at gmail.com
Thu Apr 22 20:12:07 UTC 2021


On Thursday, 22 April 2021 at 19:35:36 UTC, 12345swordy wrote:
> On Thursday, 22 April 2021 at 07:34:42 UTC, RazvanN wrote:
>>[snip]
>>
>> Bottom line: it is better to improve dpp than to implement a C 
>> parser (when libclang already does that for you)
>>
>> RazvanN
>
> Anyways, I respectfully disagree, d should import c99 standard 
> with no compiler extensions out of the box. Zig can do it, why 
> not d?
>
> -Alex

I don't see why it would be a good idea for DMD/GDC to then be 
dependent on libclang. Zig only has one compiler back end (LLVM) 
to worry about.

A dpp that works for 99% of C code is a pretty great thing. It 
will only get better as more people use it.


More information about the Digitalmars-d mailing list