:= instead of = ?

William Roberts liam at cs.qmc.ac.uk
Thu May 29 20:23:29 AEST 1986


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 at UK.AC.qmc.cs
Queen Mary College              UUCP: liam at qmc-cs.UUCP
LONDON, UK



More information about the Comp.lang.c mailing list