Why does C/C++ use const & static so many times?

B

Brian

pete said:
"Portability" doesn't mean that a C program
should also be a program in a different language.


It is common for a C++ compiler
to become a C compiler when compiling *.c files.

"pfft"
 
B

Brian

Eric said:
Dann said:
[...]
On one of our hardware platforms we have a C++ compiler but no C
compiler.

From time to time, it is a pain in the backside.

Easy fix: write a C compiler for that platform.

In The Beginning,

Ya think?

Wait, do tell us about "the beginning".

I said that wrong. What was that, a suggestion? You tell ME about this
"beginning" of yours.

"you talkin to me?". "hmm?". "Yeah you, ... you talkin to me?".

****************

Dude, twas a joke. I have comedy (but C is so funny I couldn't resist...
I'm not bad, you are).
 
B

Brian

Richard said:
Dann said:
[snip]
Perhaps, but (a) it's a C program written for C rules, not C++
rules, so a C compiler is indicated, and if you haven't got one the
right response is to get one; and (b) it is actually quite rare for
someone with a C++ compiler to be without a C compiler - so rare,
in fact, that I don't think I've ever encountered such a person.

I'd like to introduce myself, then. ;-)

Ha! There's always one, isn't there?
On one of our hardware platforms we have a C++ compiler but no C
compiler.

From time to time, it is a pain in the backside.

Easy fix: write a C compiler for that platform.
Or reject the pizza.
 
B

Brian

Nick said:
not totally general, but my experience with "toasters" (some of these
"toasters" were 10kw toasters) is being able to run most of the code
on a "proper" computer as well makes life easier. Sometimes the
"toasters" aren't available 'til late in the development cycle or
won't fit through the door. Of course this is all covered by your
"unless it has some value for *you*" clause.

Because you are an ass and don't know yourself from a hole in the ground.
 

Ask a Question

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.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,954
Messages
2,570,114
Members
46,702
Latest member
VernitaGow

Latest Threads

Top