The forked elephant in the room
jmh530
john.michael.hall at gmail.com
Tue Jan 30 15:37:03 UTC 2024
On Tuesday, 30 January 2024 at 15:17:31 UTC, Dibyendu Majumdar
wrote:
> On Tuesday, 30 January 2024 at 14:27:18 UTC, bachmeier wrote:
>
>>
>> It's not full ImportC, but I remember Walter was talking about
>> adding C header translation to the compiler [well before
>> that](https://forum.dlang.org/post/p59jdq$2ttu$1@digitalmars.com), and apparently it was an old idea by then:
>>
>
> The idea of generating automatic bindings to declarations in
> header files may have been old, but the idea of compiling
> actual C programs appears to have come from Zig:
>
> https://andrewkelley.me/post/zig-cc-powerful-drop-in-replacement-gcc-clang.html
Zig did it before D (arguably C++ and Objective C did something
similar well before Zig). It doesn't really matter if Walter knew
about what Zig was doing or not. It was a good idea and it's a
good addition to D at the end of the day.
More information about the Digitalmars-d
mailing list