> If you put the constant on the left in any evaluation, screwing up on
> the evaluation vs assignment always results in an error. This little
> stylistic item has saved me many, many an hour debugging. Developed that
> when a professional programmer dropped a bug ridden half foot thick C
> program printout and some ten or twenty diskettes on my desk and said "I
> quit!". Most of the bugs were just that -- assignment during evaluation
> because he used = instead of == in C.
I've learned it very quickly :-)
Unfortunately I've coded in C++ quicker than I was learning...
Some of my 2 weeks old code is full of
if(x==3) {
instead of
if(3==x) {
then I discovered an warning option on my compiler and then finally
I've put more of attention when I was re-reading Stroustrup book.
--------------------------------------------------
Ivan Sergio Borgonovo [EMAIL PROTECTED]
Webmaster Gorilla Bookstore http://www.gorilla.it
Tel. +39 2 3311105/34530455 Fax. +39 2 34531591
Via Mac Mahon 9, Milano, Italy
--------------------------------------------------
____________________________________________________________________
--------------------------------------------------------------------
Join The Web Consultants Association : Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------