built in import c header files
Max Haughton
maxhaton at gmail.com
Wed Oct 7 02:56:17 UTC 2020
On Tuesday, 6 October 2020 at 20:59:54 UTC, 12345swordy wrote:
> I remember reading a reddit comment saying that if d were to
> import c header files directly without any 3rd party libraries
> it would be a game changer. The question is: how difficult to
> implement a C AST parser for the dmd front end?
>
>
> -Alex
Not impossible (it's worth saying that you can literally do this
as a library via mixins), but having a c parser in the compiler
seems like too much work when it's already fairly trivial to do.
If D had a team of full time staff on payroll, then it could be
made to work but it adds so much surface area to the compiler.
More information about the Digitalmars-d
mailing list