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

You already know this, but I would add that under strict aliasing rules, this is only valid because x and y point to the same type.

The most common example is when y is float* and someone tries to access its bitwise representation via an int*.

(Please correct me if I'm wrong)

https://gist.github.com/shafik/848ae25ee209f698763cffee272a5...




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

Search: