Re: CriticalAlert
Re: CriticalAlert
- Subject: Re: CriticalAlert
- From: Donald Brown <email@hidden>
- Date: Thu, 20 Dec 2001 15:15:29 -0600
And, of course, make sure you enable warnings, and READ THEM. CodeWarrior
will warn when you use if (x=y) (and a warning is appropriate, it is legal
syntax, it's equivalent to x=y; if (x)), haven't encountered this with PB
yet.
Donald
on 12/20/01 2:52 PM, Steve Bird at email@hidden wrote:
>
I came to the conclusion that anyone (me included) who couldn't remember
>
to use double equals, wouldn't remember to put the constant first, either.
>
It was a struggle to remember to put the constant first. It was a
>
lesser struggle to check the double-equals than to re-arrange the
>
arguments to the comparison operator.
>
And now it's second nature.
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo