lkml.org 
[lkml]   [1999]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: fork() Problem?
Date
From
In message <Pine.LNX.3.95.990505172738.3400B-100000@chaos.analogic.com>, "Richa
rd B. Johnson" writes:
+-----
| Then we have a conditional expression which tests the result of
| an operation:
|
| if(left = right)
|
| As stated, and as Lint picked up, we are now testing if the assignment
| occurred, not the value of the left-most operand. Therefore, we have
| to make the assignment first:
+--->8

The assignment always occurs, *unless* there is an exception (i.e. a signal)
or unless this is C++ and someone has dome something silly with an operator=.

Please explain these purported non-occurrences that you think occur. Please
explain where they are described in the standard.

Also, explain why your "gcc bug" is in every compiler from pcc on.

--
brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering KF8NH
We are Linux. Resistance is an indication that you missed the point.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.121 / U:1.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site