R
Richard Heathfield
James Kuyper Jr. said:
Er, maybe. This is a classic muddy pool, in that Borland call the compiler
"Turbo C++" nowadays, but it incorporates a C compiler, too. Some people
refer to the compiler as "Turbo C++" even though they are writing in C and
using the C compiler to compile the code.
This happens with Microsoft too. In fact, I myself sometimes refer to using
"Visual C++" when compiling C code using that product. And I /am/ using
(the C compiler that is incorporated in) "Visual C++". It would of course
be possible to refer to "Visual C" instead (and indeed sometimes I do),
but although that would be more accurate in one sense, it would be less
accurate in another, since Microsoft do not ship and (AFAIK) have never
shipped a product called "Visual C".
The real world conspires against precision in communication!
Not if my guess is right - i.e. that he is using "Turbo C++" to name the
product, rather than to describe the precise nature of the compiler.
Richard Heathfield wrote:
This is not valid C code. The rules of C do not give you licence [...]
He indicated that he was using a C++ compiler.
Er, maybe. This is a classic muddy pool, in that Borland call the compiler
"Turbo C++" nowadays, but it incorporates a C compiler, too. Some people
refer to the compiler as "Turbo C++" even though they are writing in C and
using the C compiler to compile the code.
This happens with Microsoft too. In fact, I myself sometimes refer to using
"Visual C++" when compiling C code using that product. And I /am/ using
(the C compiler that is incorporated in) "Visual C++". It would of course
be possible to refer to "Visual C" instead (and indeed sometimes I do),
but although that would be more accurate in one sense, it would be less
accurate in another, since Microsoft do not ship and (AFAIK) have never
shipped a product called "Visual C".
The real world conspires against precision in communication!
Why he was asking a C group about the result of using a C++ compiler is
a harder question.
Not if my guess is right - i.e. that he is using "Turbo C++" to name the
product, rather than to describe the precise nature of the compiler.