4 ms·
> 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 competi
by bigbillheck 5y ago
> 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'.
- ghoward 5y agoI 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.
- Joky 5y agoI 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).