Sorry, we take this again... If you find a line with "if ( foo =3D 3 ) 2'am in the morning after hours of debugging you understand why..... ;-) Was what I intended to write /Ake Ake Hedman wrote: > Dave VanHorn wrote: >=20 >> >>> >>> I used to look for programmers who wrote "if(3 =3D =3D foo)" rather t= han=20 >>> "if(foo >>> =3D =3D 3)" >> >> > > > > Ok, I'm new at C, why is the second case less preferable? It seems > > counterintuitive. > > The first case seems to imply that 3 is the variable, though I know = it > > can't be. >=20 >=20 >=20 >=20 > /Ake >=20 --=20 --- Ake Hedman (YAP - Yet Another Programmer) eurosource, Brattbergav=E4gen 17, 820 50 LOS, Sweden Phone: (46) 657 413430 Cellular: (46) 73 84 84 102 Company home: http://www.eurosource.se Kryddor/Te/Kaffe: http://www.brattberg.com Personal homepage: http://www.eurosource.se/akhe Automated home: http://www.vscp.org _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist