G
goose
Roedy Green said:But then people write code thinking of only their own platform where
int is say 32 bits, and hand it to someone else whose int is 16 bits.
It does not work. It requires foresight and a macro to make that
code work on both platforms. It is thus foolish to claim C or C++
works naturally multiplatform. It requires extra effort.
the "work" (if it could be called that) that lazy programmers
do is the fault of the language ????
did you have you IQ tested recently ? do you even think at all ?
just because a programmer was too ill-trained in the language,
it does not mean the language is at fault.
Look at something like one of the GNU compilers which you would think
would naturally without ANY effort be platform independent. It has
ZILCH in the way of user interface. Then go look at the zillions of
config tweakings and macros you need to handle platform differences.
Think back a few years to all the near/far pointer crap you had to
deal with on Windows 3.1. That certainly did not port automatically
anywhere else.
that was (and still is) *not* part of the c standards. your knowledge
of near/far shows you to be someone who has worked with C before.
your lack of knowledge wrt to the standards (too many examples, but
i'll name 2 -> 1. you dont know that the standards guarantee int to
have minimum and maximum values. 2. you dont know that near/far are
*extensions* to a particular implementation) show that you have
been an incompetant C programmer in the past.
you cannot call yourself competent if you *ever* thought that near/far
was "standard C".
You are defending C++ as if you were defending your favoured football
team, with emotional loyalty, giving it imaginary virtues, and
not imaginary, but certainly it has the edge wrt to cross-platform-ness.
java doesn't even come close. yet it is *you* who insist that C is not
cross-platform, with not a single iota of evidence to back this up.
I, otoh, have backed up more than once my statements regarding
1. the size and possible values of an int.
2. the conformance issue wrt to a fully conformant implementation.
3. the portability of fully compliant C code.
imagining it would be impossible for it to be anything less than all
things to all people.
I disagree, you have yet to address *any* of my other points, which
got snipped away (luckily, they are all archived for the world to
see that you say "even the size of an int is not guaranteed" and i
replied "yes it is, now you are more informed", and you *snipped*
that reply and stated yet again "even the size of an int is not
guaranteed" ...)
C is a portable assembler. That's where it
reigns supreme. Partly because of that distinction it NECESSARILY
can't be high level and highly platform independent.
thats where you are wrong. all of the points in that paragraph.
it isn't necessarily high-level, but it is *very* platform
independant ...
goose,
couple million java programmers in the world, roughly 10%
java software ?