what exactly does the operator |= ???

R

Richard Heathfield

Keith Thompson said:
Are there different printings of K&R2 with different page numbering?
No.

There have been two major editions of K&R (Kernighan & Ritchie, _The C
Programming Language_). The first edition is now mostly of historical
interest. The second edition describes the language standardized by
the 1989 ANSI standard and the 1990 ISO standard. (There are no plans
for a new edition covering the 1999 standard.)

There was also an interim edition, based on the ANSI C draft - and it turned
out to be identical to the second edition.

Even the hardback version (which I also have) has identical page-numbering.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 
M

Mark McIntyre

Are there different printings of K&R2 with different page numbering?

He may be looking at a non-English impression, which would most likely
have different page numbering.
Erick, if you're looking at the first edition, you should get a copy
of the second edition.

Page 50 of K&R (1978) starts with the words "similarly, the order in
which..." and talks about function argument evaluation order.

--
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
 
M

Mark McIntyre

Keith Thompson said:


No.

Absurd claim.

One might reasonably expect foreign language copies to have different
page numbering, and indeed a UK pressing might well be different to a
US one, or a reprint on smaller pagesize, or...
Even the hardback version (which I also have) has identical page-numbering.

Perhaps, but as with the output of compilers, empirical evidence of
your particular environment is not a general proof.

--
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
 
C

Coos Haak

Op Fri, 17 Nov 2006 22:53:19 +0000 schreef Mark McIntyre:

Page 50 of K&R (1978) starts with the words "similarly, the order in
which..." and talks about function argument evaluation order.

That's on the middle of page 53.
Page 50 begins with the header '2.10 Assignment Operators...' as I wrote
earlier.
I have the paperback version of 1988, ISBN 0-13-110362-8.
Bought for nearly EUR 50 in 2003.
 
K

Keith Thompson

Mark McIntyre said:
He may be looking at a non-English impression, which would most likely
have different page numbering.


Page 50 of K&R (1978) starts with the words "similarly, the order in
which..." and talks about function argument evaluation order.

It's the same in my copy of K&R1. That's the last page of the section
on Precedence and Order of Evaluation. Chapter 3, on Control Flow,
starts on page 51.

In my copy of K&R2, page 50 is the first page of the section on
Assignment Operators and expressions; chapter 3, on Control Flow,
starts on page 55.

Either Erick has made a mistake (hey, it happens), or he has some
other edition.

There are a multitude of translations into languages other than
English; see <http://cm.bell-labs.com/cm/cs/cbook/>. That page
mentions that many of the errata have been corrected in recent
printings; it's plausible that some of those corrections might have
caused page shifts (though probably not from 50 to 55, assuming we're
talking about K&R2).
 
R

Richard Heathfield

Mark McIntyre said:
He may be looking at a non-English impression, which would most likely
have different page numbering.

That is entirely possible. If it is in fact the case, then I owe the OP an
apology.
Page 50 of K&R (1978) starts with the words "similarly, the order in
which..." and talks about function argument evaluation order.

And in any case, I specified K&R2, not K&R.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 
R

Richard Heathfield

Mark McIntyre said:
Absurd claim.

I thought I was supposed to be in your killfile.
One might reasonably expect foreign language copies to have different
page numbering, and indeed a UK pressing might well be different to a
US one, or a reprint on smaller pagesize, or...

Yes, it's true that I hadn't considered that possibility.
Perhaps, but as with the output of compilers, empirical evidence of
your particular environment is not a general proof.

Do you have a counter-example in English?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 
J

J. J. Farrell

Coos said:
Op Fri, 17 Nov 2006 22:53:19 +0000 schreef Mark McIntyre:



That's on the middle of page 53.
Page 50 begins with the header '2.10 Assignment Operators...' as I wrote
earlier. I have the paperback version of 1988, ISBN 0-13-110362-8.
Bought for nearly EUR 50 in 2003.

You're talking about K&R2. Mark was talking about K&R, since the most
likely cause of the confusion was that the OP looked at K&R rather than
the K&R2 which Richard specified. It looks like the OP's printing
differs from both the common standard editions.
 
M

Mark McIntyre

Mark McIntyre said:


Do you have a counter-example in English?

Thats irrelevant, and you know it as well as I do. And for what its
worth the OP had a book with different page numbering to you so we
already have an example (*)

I'm sorry Richard, but you're being foolish, and you know it.


(*) a petty minded person would at this point claim that the OP must
have been referring to a different book. Naturally, the petty-minded
person cannot possibly be mistaken, clearly only everyone else can be
wrong.
--
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
 
M

Mark McIntyre

Op Fri, 17 Nov 2006 22:53:19 +0000 schreef Mark McIntyre:



That's on the middle of page 53.
Page 50 begins with the header '2.10 Assignment Operators...' as I wrote
earlier.
I have the paperback version of 1988, ISBN 0-13-110362-8.
Bought for nearly EUR 50 in 2003.

Thats K&R2. Note that I said K&R(1978)

--
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
 
C

Coos Haak

Op 17 Nov 2006 17:39:01 -0800 schreef J. J. Farrell:
You're talking about K&R2. Mark was talking about K&R, since the most
likely cause of the confusion was that the OP looked at K&R rather than
the K&R2 which Richard specified. It looks like the OP's printing
differs from both the common standard editions.

That may be, but Keith and Richard were talking about K&R2, so was I. That
version is IMHO more authorative ;-)
 
R

Richard Heathfield

Mark McIntyre said:
Thats irrelevant, and you know it as well as I do.

No, it isn't. What you're suggesting is that there's a hitherto undiscovered
edition of K&R2. If that's true, it's important and indeed radical news,
but if it's not true, it's just nonsense.
And for what its
worth the OP had a book with different page numbering to you so we
already have an example (*)

I am not convinced that this is the case. I think it far more likely that
he's got an illegal e-version with faulty numbering, although of course
that is mere supposition on my part.
I'm sorry Richard, but you're being foolish, and you know it.

Wrong.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 
M

Mark McIntyre

Mark McIntyre said:


No, it isn't. What you're suggesting is that there's a hitherto undiscovered
edition of K&R2.

Thats not what I'm suggesting, though I'm sorry to say I actually
*expected* you to twist the discussion round to bolster your weak
position.

Why on earth are you being so childish? Can't you just accept that
there may be different pressings of a book with different
pagenumbering? What do you hope to gain by pursuing a line that all
other posters have already accepted is flawed?

Its a real shame, you used to be quite sensible.




--
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
 
R

Richard Heathfield

Mark McIntyre said:

Why on earth are you being so childish?

Why do you so often use the word "childish" to describe people who disagree
with you?
Can't you just accept that
there may be different pressings of a book with different
pagenumbering?

Of course I can, but I can also accept that in K&R2's case, this doesn't
appear to have happened, and I note that the page numbering is sufficiently
consistent for the K&R2 Errata page to be able to refer to page numbers
throughout without ever having to say which pressing of the book it is
referring to. So I have good evidence to support my view, whereas all you
appear to have in support of yours is mere supposition.
What do you hope to gain by pursuing a line that all
other posters have already accepted is flawed?

Truth is not democratic. Just because lots of people think 2+2=5, that
doesn't make it so.
Its a real shame, you used to be quite sensible.

And I haven't changed.


--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 
T

Thomas Ploch

Richard said:
Erick-> said:


No, it isn't. It's entitled "Assignment operators and expressions", and it
answers your question.

Before learning to program, I suggest learning to read.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.

Have you all thought about things like different language editions of
K&R, which could be different in numbering? Although I don't think it
really matters, it is a pretty weird discussion on where you find what
in K&R. He might have another edition, or even a misprint, so there is
no way to determine that from your side of the river.

That doesn't give erick a free ticket to feel great, since if he had
looked into the index at the back of the book, he would have discovered
a list of all operators on the second last page.

But there is no need, to be honest, for displaced and somehow offensive
language that spawns more aggression.

Sincerely,
Thomas
 
K

Keith Thompson

Erick-> said:
Bob Martin said:
[...]
do you want to see this book?? with the page NUMBER 50 with the first
line: "Chapter 3 - Control Flow" ???

was the page 46: 2.10 Assignment Operators and Expressions. thanks.
yeah, sure.

sorry for not have the same book and same edition :):). (next time
would be better if you say: read the section 2.10 of K&R book).

Erick, as you can see if you've been following this thread, the
question of which section is on which page has generated, shall we
say, a great deal of enthusiastic interest. (Ok, flames.)

Personally, I'd be interested in knowing whether we can assume that
page numbers in different English printings of a given edition of K&R
are consistent or not. If we can't, then we need to be more careful
in providing citations.

I checked my own copies of both K&R1 and K&R2, and found the following:

| It's the same in my copy of K&R1. That's the last page of the section
| on Precedence and Order of Evaluation. Chapter 3, on Control Flow,
| starts on page 51.
|
| In my copy of K&R2, page 50 is the first page of the section on
| Assignment Operators and expressions; chapter 3, on Control Flow,
| starts on page 55.

What you found on page 50 appears to be inconsistent with that. So if
you can provide some more information, I'd appreciate it.

Is your book the 1st or 2nd edition? Is it an English printing, or
one in some other language? Is there any other useful information on
the cover or title page (Nth printing, special edition, etc.)? What
section appears on page 50? What is the first line of text on page
50? On what page does Chapter 3, Control Flow, start?

(If you're using a 1st edition, I'd advise you to find a copy of the
2nd edition.)

Thank you.
 
J

Joal

Richard said:
Why do you so often use the word "childish" to describe people who disagree
with you?

That's rich coming from someone who unnecessarily accused a poster of
not being able to read.
And I haven't changed.

It seems to me that comp.lang.c has made you more than a little bit
bitter.

-Joal
 
R

Richard Heathfield

Joal said:
That's rich coming from someone who unnecessarily accused a poster of
not being able to read.

Okay. I've apologised for that, on the basis that the OP *might* have been
using a foreign language edition. Unlikely, but possible.
It seems to me that comp.lang.c has made you more than a little bit
bitter.

It seems to me that comp.lang.c has done no such thing. I'm perfectly happy,
perfectly equitable, and perfectly capable of not putting up with nonsense
from people (such as Mark and Mr Navia) who should know better.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: normal service will be restored as soon as possible. Please do not
adjust your email clients.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top