Re: Why does rewind() ignore errors?



Charlie Gordon wrote:
#define gets(buf) abort("gets invoked!\n")

No, that breaks working code in benign environments.

So you let the Scandinavians have their way, ...
... by 1989 who still needed to cope with ISO-646 ?

The decision was made around 1987, and the input from those
participating was that it was still enough of a problem for
their clients that at least one national body would vote
against ratification of the standard if it did not address
the issue. There was considerable debate and discussion
before the final decision. You may call that "politics",
but there was a process involved that required lots of
negotiations all along the way. We didn't have a C "czar",
and even if there had been one it isn't obvious that his
spec would have met actual user requirements as well,
overall, as the one reached through the ISO process.

A lot of people who think something is obvious to them
don't realize that there are factors they haven't considered,
or they dismiss those factors as unimportant, though they
might be very important for others. That's why a process
involving discussion and consensus is important for the
overall acceptability of the end result.

What about <iso646.h> ? What need was there to pollute the
standard with such useless crap ?

That was a stage in the further evolution of the battle over
trigraphs etc. once the C++ standards group got involved.
Again, it was essentially a political compromise in order to
gain a sufficient degree of acceptance among all involved.
If you don't want to use <iso646.h> you're free not to use it.

const char *template = "??/??/??";
printf("Enter a date using the template %s: ", template);
Many programmers will be unable to debug what they will diagnose as data
corruption.
Please save us from such an "improvement".

I think the confusion would be due mainly to some people
constantly urging programmers to ignore trigraphs. As a
standard part of the language, they need to be understood.
Certainly other parts of C are much more complicated.
.



Relevant Pages

  • Re: Segfault City
    ... Those who ignore the standard library condemn themselves to rewriting it. ... programmers have to use a dictated and not fully standard compiler. ... I'm saying that to rely on character ordering that is not guaranteed ...
    (comp.lang.c)
  • Re: Whats the deal with C99?
    ... programmers need or want. ... couple of marginal C99 implementations which can only do so because ... a major loss for GCC, the C standard, and the C community in general. ... If the C standard committee merely added APIs for these into ...
    (comp.lang.c)
  • Re: subroutine stack and C machine model
    ... If you are referring to left-to-right evaluation, ... determined by the programmers of compilers...for the same reason that ... obsolete language APL enforced right to left evaluation. ... each compiler's choice was a defacto standard. ...
    (comp.lang.c)
  • Re: Efficency and the standard library
    ... In his Annotated C Standard, he says just that, and follows it with the ... Most sane programmers *know* that most bytes are 8 bits ... that "because Schildt made so many errors, ... contained an obvious off by one bug, ...
    (comp.lang.c)
  • Re: subroutine stack and C machine model
    ... It is a fact that the C language has been defined by the ISO C standards ... A mistake has been certified standard for too long. ... I've known plenty of good programmers who have switched to C from other ... Microsoft compiler used Int precision, ...
    (comp.lang.c)