built in import c header files

12345swordy alexanderheistermann at gmail.com
Thu Apr 22 23:10:36 UTC 2021


On Thursday, 22 April 2021 at 20:12:07 UTC, jmh530 wrote:
> 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.

Why do people keep bringing up libclang here? I am not referring 
to libclang nor dpp as it does more than c here.
-Alex


More information about the Digitalmars-d mailing list