[net.lang.c] := instead of = ?

liam@cs.qmc.ac.uk (William Roberts) (05/29/86)

Summary:
Expires:
Sender:
Followup-To:
Xpath: ukc eagle

For the time being, you can catch a lot of the typos by putting

                if (5==x) ...
instead of      if (x==5) ...

I *know* it looks very strange, but losing an = in the first
causes the compiler to mutter about illegal lhs of assignment.
Losing an = in the second, however....
-- 

William Roberts                 ARPA: liam@UK.AC.qmc.cs
Queen Mary College              UUCP: liam@qmc-cs.UUCP
LONDON, UK