On Thu, 13 Oct 2011, Chuck Guzis wrote:
There were also answers that were
"Undefined", which really bugged
me about C as a language.
Part of what made C truly powerful was flexibility of implementation. If
your machine would work better with 18 bit integers instead of 16, then
you could do so. The downside, of course was extreme frustration when you
encountered a lack of rigidity on things such as what 32767 + 1 was going
to do, which increment would occur first on n=3; A[n++] = n++; (is that
A[3]=3; A[3]=4; A[4]=3; or A[4]=4;?, yet while(*T++=*S++); would work!),
etc. You really didn't have the safety of a padded play area like certain
other languages. If you wanted to shoot yourself in the foot, C would
give you unlimited rope.
Attempting to make use of YOUR compiler's behavior in an "undefined"
situation was foolish. What SHOULD happen if you divide by 0? (few
compilers could implement a black hole)
--
Grumpy Ol' Fred cisin at
xenosoft.com