ImportC can now automatically run the preprocessor

max haughton maxhaton at gmail.com
Sun May 15 02:12:02 UTC 2022


On Sunday, 15 May 2022 at 01:00:14 UTC, forkit wrote:
> On Saturday, 14 May 2022 at 21:05:09 UTC, Walter Bright wrote:
>> ...
>>
>> It's been a longer and windy-er road than I'd anticipated, but 
>> isn't that the way all software projects work?
>> ...
>
> Well...I'm not aware of any software projects where someone 
> wakes up one morning, with a thought bubble, and then decides 
> to submit a PR, marked as 'Trivial', that adds a C compiler 
> insider an already existing compiler for a different language.
>
> https://github.com/dlang/dmd/pull/12507/
>
> The long, windy road 'could' have been anticipated.
>
> I certainly anticipated it when I read that PR.
>
> It'll be a long, windy road ahead to, for anyone having to 
> maintain projects that explicitly, actively, encourage you to 
> combine different languages.

That depends on the nature of the combination.

I will likely never compile a C dependency with ImportC directly, 
and I will definitely never import a D module into a C project, 
but I have already used ImportC for some things and it really 
isn't that complicated either in implementation or praxis.

ImportC should've really happened 10 years ago.



More information about the Digitalmars-d mailing list