E
Eric Sosman
Could do that I suppose, but "if (debugflag_is_true) { ..." gets tedious
quite quickly.
You'd prefer `if (debugflag_is_true == true)', I guess? ;-)
There's also the question of when to stop:
if (x)
if (x == true)
if (x == true == true)
if (x == true == true == true)
...
It's mostly a matter of personal style, but I've never
found a convincing reason (in any language) to compare with a
Boolean constant. I like explicit comparisons of pointers
to NULL and numbers to zero: `if (ptr != NULL)' rather than
`if (ptr)', but it's just a preference. (I particularly abhor
`if (!strcmp(answer,"no"))', which reads so wrongly it rouses
righteous rage.)
Also, as mentioned up-thread, `if (isdigit(ch) == true)'
is just plain wrong, R-O-N-G, wrong.