J
JohnQ
Is the C++ precompiler the same as a C precompiler? If not, how much
different is it?
John
different is it?
John
JohnQ said:Is the C++ precompiler the same as a C precompiler? If not, how much
different is it?
Is the C++ precompiler the same as a C precompiler? If not, how much
different is it?
Jerry Coffin said:At least officially, they're currently different -- C99 added variadic
macros (for one example) that C++ doesn't have (yet). I believe the
intent is to add these in C++ 0x so they'll be the same again.\
Preprocessor.JohnQ said:Oh! So the C precompiler is "more advanced" then the C++ one. I kinda like
that response. I hope the implication is a correct one.
Oh! So the C precompiler is "more advanced" then the C++ one. I kinda like
that response. I hope the implication is a correct one.
Jerry Coffin said:[ ... ]
Oh! So the C precompiler is "more advanced" then the C++ one. I kinda
like
that response. I hope the implication is a correct one.
Keep in mind that I said "officially". I said it for a reason --
conforming implementations of C99 are pretty rare, and the only one of
which I'm aware (Comeau) also allows you to use the new preprocessor
when compiling C++ code if you want to; from a practical viewpoint,
there's not a whole lot of difference.
That said, yes, the C preprocessor is currently more advanced than the
C++ preprocessor.
Ian Collins said:Preprocessor.
Don't forget that a) C99 isn't fully implemented by most C compilers and
b) variadic macros are of more use in C than they are in C++.
Are you talking about some specific "precompiler" (if so, which?), orJohnQ said:Aside: I'm not worried about variadic macros. The only thing I'm "worried
about" is the C++ precompiler supporting C++isms (of only any that I use, of
course).
Is the C++ precompiler the same as a C precompiler?
If not, how much different is it?
Ian Collins said:Are you talking about some specific "precompiler" (if so, which?), or
the C++ preprocessor?
Robbie Hatley said:"JohnQ" asked:
There is no such thing as a "precompiler" in C or C++.
They are not "JIT" languages. Are you a Java programmer,
by any chance?
Or perhaps you mean the "preprocessor"?
Then you are not talking about a "precompiler".JohnQ said:The C++ one. I'm using VC++ but I recently found HP PCC and am wondering if
I can get some freedom via that.
Is the C++ precompiler the same as a C precompiler?
If not, how much different is it?
Ian Collins said:Then you are not talking about a "precompiler".
Is the C++ precompiler the same as a C precompiler?
If not, how much different is it?
They have to be implemented by the compiler. Templates use types andJohnQ said:So templates are implemented strictly in the compiler then or is that
implementation-specific?
Ian Collins said:They have to be implemented by the compiler. Templates use types and
the preprocessor being a simple text processor has no concept to type.
Oh come on, have you read an C++ books?JohnQ said:Explain/prove please.
Ian Collins said:Oh come on, have you read an C++ books?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.