|
|
Mike Raiford wrote:
> Should cause a compiler warning about side effects. (I would think)
It's good side-effects, tho, yes? The complaint is valid in conditionals not
because of side effects but because it's a constant value in a conditional.
while (x = getchar()) {...}
doesn't cause a complaint, because getchar() isn't a constant.
--
Darren New, San Diego CA, USA (PST)
"Ouch ouch ouch!"
"What's wrong? Noodles too hot?"
"No, I have Chopstick Tunnel Syndrome."
Post a reply to this message
|
|