Oh actually I missed that. nice.
Oh actually I missed that. nice.
I'm not even sure it would compile to begin with
I'm not even sure it would compile to begin with
If it's C, you'd typically get a warning. But using the result of an assignment like that is a valid statement.
I'd never write if (blah == true), though. It's just if(blah).
Usually where people screw up is if(x = y) where neither x nor y are bools.
If it's C, you'd typically get a warning. But using the result of an assignment like that is a valid statement.
I'd never write if (blah == true), though. It's just if(blah).
Usually where people screw up is if(x = y) where neither x nor y are bools.
>But using the result of an assignment like that is a valid statement.
Oh it's as valid as if(2==2)... It's not invalid, technically speaking, it's just perfectly useless
>>But using the result of an assignment like that is a valid statement.
Oh it's as valid as if(2==2)... It's not invalid, technically speaking, it's just perfectly useless
(post is archived)