Hacker News new | past | comments | ask | show | jobs | submit login

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.




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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: