WelcomeUser Guide
ToSPrivacyCanary
DonateBugsLicense

©2025 Poal.co

(post is archived)

[–] 2 pts

Oh actually I missed that. nice.

[–] 0 pt

I'm not even sure it would compile to begin with

[–] 1 pt

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.

[–] 0 pt

>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