Re: help w/ c/c++ problem
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Thu, 05 Jul 2007 23:29:39 +0100
On Thu, 05 Jul 2007 14:23:44 -0700, in comp.lang.c , Keith Thompson
<kst-u@xxxxxxx> wrote:
This has nothing to do with whether anyone else was right or wrong, or
with what anybody admits. It's a simple technical point.
I don't propose to discuss this any further after this, but I need to
clarify the above, since you've seen fit to complain about it.
About four years ago, I argued strongly FOR precisely the
interpretation that is currently put on the words "or in some other
implementation defined manner". I was however shouted down by several
experts, who made strong arguments against my PoV. I accepted their
apparently greater wisdom.
So you will understand that I'm amused yet annoyed to see at least
some of the same experts now arguing the other side of the coin, and
even more entertained to see them vigorously attacking my posts.
Thus your statement that
The C Standard REQUIRES main to return an int.
is incorrect. A conforming implementation may allow 'void main(void)'
-- or 'long double main(unsigned long long foobar)'.
<uberpedant>
you too are incorrect since you need to add the words "provided it
documents the alternate form".
</>
If I had inserted the word "portable" somewhere there, would that have
satisfied by the way?
What's so difficult about that?
See my response elsethread, which you've either ignored, or missed.
I also want to point out that the uber-pedantry with which this point
has been debated has almost certainly given some newbies the mistaken
impression that void main() is generally ok. I trust those of you who
leapt upon this particular hobbyhorse feel happy with that.
EOT.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- Follow-Ups:
- Re: help w/ c/c++ problem
- From: Keith Thompson
- Re: help w/ c/c++ problem
- From: CBFalconer
- Re: help w/ c/c++ problem
- References:
- Re: help w/ c/c++ problem
- From: Heinrich Pumpernickel
- Re: help w/ c/c++ problem
- From: Mark McIntyre
- Re: help w/ c/c++ problem
- From: Harald van Dijk
- Re: help w/ c/c++ problem
- From: Mark McIntyre
- Re: help w/ c/c++ problem
- From: Harald van Dijk
- Re: help w/ c/c++ problem
- From: Mark McIntyre
- Re: help w/ c/c++ problem
- From: Keith Thompson
- Re: help w/ c/c++ problem
- From: Richard Heathfield
- Re: help w/ c/c++ problem
- From: Keith Thompson
- Re: help w/ c/c++ problem
- From: Mark McIntyre
- Re: help w/ c/c++ problem
- From: Keith Thompson
- Re: help w/ c/c++ problem
- Prev by Date: Re: Redirecting input from file
- Next by Date: Re: Redirecting input from file
- Previous by thread: Re: help w/ c/c++ problem
- Next by thread: Re: help w/ c/c++ problem
- Index(es):
Relevant Pages
|