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

> the original spirit of UB, which was just to make C easy to port to any architecture

I thought the original spirit of undefined behavior was 'we have competing compiler implementations and don't have the political will to pick one'.




I don't think compiler implementations are responsible for the standard to refuse to endorse 2-complement (which is the root cause of signed overflow being UB originally if I understand correctly).


I think those are one and the same; I was just more polite about it, I guess. I think yours is closer to the truth than mine.




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

Search: