Re: Other issues with the FAQ
From: Keith Thompson (kst-u_at_mib.org)
Date: 07/16/04
- Next message: Mark McIntyre: "Re: How does ESC key interact with ANSI C programs?"
- Previous message: jacob navia: "Re: gcc and alloca"
- In reply to: Dan Pop: "Re: Other issues with the FAQ"
- Next in thread: Dan Pop: "Re: Other issues with the FAQ"
- Reply: Dan Pop: "Re: Other issues with the FAQ"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 15 Jul 2004 22:33:28 GMT
Dan.Pop@cern.ch (Dan Pop) writes:
> In <cd5r4d$t8i$1@news-reader5.wanadoo.fr> "jacob navia"
> <jacob@jacob.remcomp.fr> writes:
> >1: The section about "main" doesn't mention that
> > main has an automatic zero return value.
>
> Most likely because it doesn't:
>
> fangorn:~/tmp 485> cat test.c
> #include <stdio.h>
>
> int main()
> {
> printf("Hello world\n");
> }
> fangorn:~/tmp 486> gcc -ansi -pedantic test.c
> fangorn:~/tmp 487> ./a.out
> Hello world
> fangorn:~/tmp 488> echo $status
> 12
Dan, you know as well as anyone that the behavior of a single
implementation does not definitively address questions about the
standard. Only the standard itself does that.
It's true that the C90 standard doesn't define an automatic zero
return value for main, though the C99 standard does. If you want to
make that point, make it.
> > I do not agree with this part of the standard but
> > it should be mentioned in the FAQ anyway.
> > Question 11.12b
>
> Read this until it penetrates your thick skull: it is the c.l.c FAQ,
> NOT the C99 FAQ.
The latest version mentions C99 extensively. There are still several
places where C99 features are relevant and the FAQ doesn't yet mention
them.
[...]
> >3: The question about rounding (14.6) doesn't mention the
> > standard functions lround, round, and the others defined
> > in the standard.
>
> Most likely because the standard doesn't define them:
[demonstration of gcc behavior snipped]
The C90 standard doesn't mention them. The C99 standard does. You
know that, of course, but you choose to make your point by showing how
gcc behaves rather than by coming out and saying it.
[...]
(I've skipped the Windows and MSDOS questions because I have no
significant expertise in that area.)
> BTW, if you have (finally) read the FAQ, why don't you follow its advice?
>
> This article can always be improved. Your input is welcome. Send your
> comments to scs@eskimo.com .
>
> There is exactly one person who decides what goes and what doesn't in the
> FAQ. Ditto for what needs to be changed in the FAQ. It is enough to
> convince him, you don't need our consensus. OTOH, our consensus is
> worth zilch if you don't manage to convince him. Would you change lcc
> in a manner you don't approve of simply because c.l.c has unanimously
> told you to do so? Why would be Steve any different?
It's perfectly reasonable to discuss the content of the comp.lang.c
FAQ in comp.lang.c. Steve follows the group (at least he's been doing
so lately), and I suspect he's influenced by any reasonable points
that are made here.
Just today, in the "boolean values and the FAQ" thread, Steve wrote:
] jacob navia wrote:
] >> The section about boolean values should mention
] >> <stdbool.h> at least.
]
] Indeed it should. I'll make a note. Thanks.
I understand that you probably didn't have a chance to see that
article before you posted, but if Steve doesn't have a problem
accepting feedback from the newsgroup, perhaps you shouldn't worry
about it.
If you want a FAQ that ignores the C99 standard, feel free to write
one. I'd probably even read it and give you feedback on it.
Assuming I have Steve's attention (if I don't, I'll send him an e-mail
message later), I have a couple of questions that are probably of
interest to the readers of this newsgroup:
When will the HTML version be updated to match the latest plain-text
version? If the conversion isn't automated, I'm sure someone would be
glad to volunteer to help make it so.
What's the story on the Korean translation we discussed here a few
weeks ago? There was some concern that it seems to include material
that's in the book but not in the English on-line version. (Steve
told me by e-mail that there's no real problem, but he didn't have
time to elaborate.)
-- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst> We must do something. This is something. Therefore, we must do this.
- Next message: Mark McIntyre: "Re: How does ESC key interact with ANSI C programs?"
- Previous message: jacob navia: "Re: gcc and alloca"
- In reply to: Dan Pop: "Re: Other issues with the FAQ"
- Next in thread: Dan Pop: "Re: Other issues with the FAQ"
- Reply: Dan Pop: "Re: Other issues with the FAQ"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|