News for hackers. Stuff that matters.
Re:How to convince any C developer to dump gcc and use clang by ndl on Sunday March 07, 2010 @12:59AM (#1172961)
According to the clang home page as of March 7th 2010, "Clang's C++ support is currently alpha quality at best, but is evolving rapidly."

Obviously, clang does not mean to attract C++ developers. For a while, I'd been adamant about developing in C and not C++. One day I discovered that I'd hand-coded a vtable in order to allow polymorphism in structures of function pointers. The next day, I halved the project complexity by writing 3 classes and changing a flag in the make configuration.

I use Gnu make through the Eclipse CDT on Ubuntu. It's a clunky and ugly toolchain/IDE combo that took days to configure. It compiles C, C++, CUDA and Brook+ in the same project across 3 different computers. A better C frontend would be nice, but I do not look forward to getting that working with everyone else in this chain.

Re:How to convince any C developer to dump gcc and use clang by wtallis on Sunday March 07, 2010 @11:21AM (#1173547)
The clang developers fully intend to support C++. It's just a more complex language, and as an Apple-supported project, C and Obj-C were higher priorities. clang itself is written in C++ and is self-hosting. I expect that by the end of next year, it will be able to handle Boost and any other reasonable C++ code.
Re:How to convince any C developer to dump gcc and use clang by nitrogen on Sunday March 07, 2010 @05:47PM (#1174167)
One day I discovered that I'd hand-coded a vtable in order to allow polymorphism in structures of function pointers.

I've found myself in a similar situation. I am writing embedded software which needs to be as portable as possible, but I've found myself starting to implement polymorphism and objects in C. I am tempted to ignore platforms that lack a C compiler and switch to C++, but the reduced predictability of runtimes has kept me from doing so thus far.

[deleted]
Re:How to convince any C developer to dump gcc and use clang by cema on Sunday March 07, 2010 @01:18AM (#1172980)
What does it mean? I do not get your formula.