No sequence points in assignment

T. William Wells bill at twwells.com
Thu Sep 14 07:34:44 AEST 1989


In article <5059 at merlin.usc.edu> jeenglis at nunki.usc.edu (Joe English) writes:
: As far as I know, yes.  I have a question, though:  Does it really
: matter?  There seems to be a lot of traffic lately asking questions
: like:  "Will (obviously buggy and weird code) work like you would
: expect it to, or is the compiler allowed to do something other than
: What I Mean?"
:
: I fail to see how these questions are relevant, unless you're trying to
: write incredibly hairy expressions like using a temporary variable
: multiple times in a single expression.  (Which you probably shouldn't
: be doing in the first place!)

One good reason for asking such questions is to check one's knowledge
of C. Imagine this scenario: discover or think up some C wierdness;
think about it for a while to understand it; post to the newsgroup to
see if the understanding is correct.

Some of these questions also come from people who have discovered or
been told that "X" doesn't work and now want to understand why.

No doubt there are also people out there who just want to get away
with some outrageous sillyness and want agreement that what they wish
should be what is. But, while those people tend to be vociferous and
so very noticable, I don't think that they are in the majority of
people asking such questions.

---
Bill                    { uunet | novavax | ankh | sunvice } !twwells!bill
bill at twwells.com



More information about the Comp.std.c mailing list