News for hackers. Stuff that matters.
Re:Herb Sutter confirms no more support for C beyond C90 in ... by cobrausn on Thursday May 03, 2012 @04:51PM (#3925744)
They are going to conform to a standard. The C++11 standard. Conforming to the later C standards and the C++11 standard would be incompatible goals.
Re:Herb Sutter confirms no more support for C beyond C90 in ... by cdavid on Thursday May 03, 2012 @05:03PM (#3925804)
How would supporting both C++ and C standards be incompatible ? Every other major C/C++ compiler can do it (intel, clang, gcc, sun studio, etc…). Implementing most of the C99 features is ridiculously easy compared to C++11 (C-compatible complex numbers, C99 semantics for inline, etc…).

The sheer amount of code that can be compiled on every platform but VS because of this is very significant, especially open source ones. I have a hard time buying the resource reason to be honest.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by bunderbunder on Thursday May 03, 2012 @05:20PM (#3925878)
The sheer amount of code that can be compiled on every platform but VS because of this is. . .

. . . not actually very much. Visual Studio can use Intel's compiler, and perhaps others.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by cube13 on Thursday May 03, 2012 @05:24PM (#3925894)
GCC and Sun Studio offer different compilers for C and C++. You can compile C code with Sun Studio's CC, but normally you would use cc for C code.
Re:Herb Sutter confirms no more support for C beyond C90 in ... by bunderbunder on Thursday May 03, 2012 @05:44PM (#3925966)
The others, too. llvm, gcc, and icc all support both C and C++. But they also support Fortran using the same technique: A separate compiler front-end for each language.

For VC++ to add support for C as easily as many compiler collections do would require VC++ having a modular architecture like that of the other compiler collections. Considering VC++ only supports one language, that seems doubtful.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by someone-else on Thursday May 03, 2012 @06:04PM (#3926044)
It already supports C. They're just not updating the version, leaving it stuck in C89 mode.
Re:Herb Sutter confirms no more support for C beyond C90 in ... by bunderbunder on Thursday May 03, 2012 @06:13PM (#3926075)
Touche.

Perhaps I should have said "Supporting versions of C past the point where one could plausibly just pipe the C code through a C++ compiler."

Re:Herb Sutter confirms no more support for C beyond C90 in ... by adgar on Thursday May 03, 2012 @06:47PM (#3926183)
> Perhaps I should have said "Supporting versions of C past the point where one could plausibly just pipe the C code through a C++ compiler."

Like supporting for-loop variable declarations, which MSVC's C++ compilation mode (/TP) supports, but MSVC's C compilation mode (/TC) does not?

Oh - and what about declaring a variable anywhere other than the start of a scope? Allowed in C++, not in C. Cute.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by cpeterso on Thursday May 03, 2012 @05:23PM (#3925890)
> The sheer amount of code that can be compiled on every platform but VS because of this is very significant, especially open source ones.

Mission accomplished.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by eliben on Thursday May 03, 2012 @05:19PM (#3925872)
You do know that C and C++ are separate languages, right?
Re:Herb Sutter confirms no more support for C beyond C90 in ... by cobrausn on Thursday May 03, 2012 @05:34PM (#3925932)
Of course I do. Doesn't the post make it clear as day? C++11 and C11 are different standards, as stated.

Any C++11 compiler that tells you it is also C11 standards compliant is not a C++11 compliant compiler. There are many things you can do with C11 that should cause an error under standards compliant C++11.

EDIT:

If they decide to make the /TP switch on the compiler turn it from C++11 compliant to C11 compliant, that basically makes it two compilers for two different languages, instead of restricting to a subset of C++11.

Re:Herb Sutter confirms no more support for C beyond C90 in ... by binarycrusader on Friday May 04, 2012 @01:55AM (#3927243)
Visual Studio provides a suite of compilers; not just a single one.

I'm asking for their C compiler to support the C99 or C11 standard.

They're not incompatible goals unless you're suggesting that they attempt to make a single compiler support both.