Mail Archives: djgpp/1996/12/04/05:56:31
gpt20 AT thor DOT cam DOT ac DOT uk (G.P. Tootell) wrote:
>instead of treating this as a==b && b==c && c==0, it treated it as a==b && c==0
>can anyone explain this behavior? should it not have been reported as a warning?
Bear in mind that a==b returns an integer - zero if a!=b, nonzero
(usually 1) if a==b.
Thus a==b==c returns 1 is a==b and c is true, or a==b and c is false.
If I've got the associativity right.
a==b==c==0 does something similar. Probably inverts the entire above
sentence - checking if something is zero is the same as logically
inverting it...
>nik
>--
ABW
--
"Simply drag your mother in law's cellphone number from the
Address Book to the Laser Satellite icon, and the Targeting
Wizard will locate her. Then follow the onscreen prompts for
gigawattage and dispersion pattern..."
(Windows for Early Warning and Defence User's manual P385)
Alaric B. Williams Internet : alaric AT abwillms DOT demon DOT co DOT uk
<A HREF="http://www.abwillms.demon.co.uk/">Hello :-)</A>
- Raw text -