Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don't think that C actually forbids this code:

     *(int*)0x12345678
If not, give it time. It was only a few years ago when you were allowed to use a union for that kind of thing. I really believe they'll eventually make everything except unsigned integers be UB.

"Oh, the code was never correct. You just got lucky before."



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

Search: