TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: Jay Truesdale 72176,3565 (X)
from: James Jones 76257,562
date: 1990-10-27 16:13:00
subject: #7798-#OSK C

#: 7804 S3/Languages
    27-Oct-90  16:13:00
Sb: #7798-#OSK C
Fm: James Jones 76257,562
To: Jay Truesdale 72176,3565 (X)

You typed |= and you probably meant !=.  A subtle difference, but a crucial
one!  The reason the caret points at the = is that it's the left-hand side of
the |= assignment operator, or rather, the = is the root node of the expression
tree that's the left child of the |=.

Actually, you're pretty darned lucky; the rest of the |= should have been !=
too, but because just ch (which is an lvalue) was the LHS, the compiler would
have blithely done what you told it to do, and your loop would have run
forever!

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.