3 ms·
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
by WalterBright 3y ago
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.
- Gibbon1 3y agoI 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.