Hacker News new | past | comments | ask | show | jobs | submit login

THIS^

Incidentally, would this bug have been flagged by a compiler warning?




I don't think so. The compiler would have no idea that 1 and 0 were not the 1 and 0 that the human was expecting, surely?


In C, no. Even an enum type in C can be compared with integers without any warnings.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: