News for hackers. Stuff that matters.
Re:Speeding up C++ build times by WalterBright on Sunday April 28, 2024 @11:37PM (#40194161)
Those problems are fixable with C/C++, but nobody seems to want to do it. They are fixed with dlang's ImportC. You can do things like:

    dmd a.c b.c
and it will compile and link the C files together. ImportC also supports modules (to solve the .h problems).

It's all quite doable.

Re:Speeding up C++ build times by Gibbon1 on Monday April 29, 2024 @05:39PM (#40204443)
I wonder if you could create a pragma in C to do almost the same.

I don't have a good name for it but it would force the compiler to ignore previous definitions. With an 'undo' pragma as well.