27 Nov
2018
27 Nov
'18
8:10 p.m.
On Tue, Nov 27, 2018 at 11:59 AM Andrey Semashev via Boost < boost@lists.boost.org> wrote:
Having the wrap semantics would be useful, at least for being able to portably detect an overflow. That ability alone allows to implement whatever other behavior you might need. OTOH, having overflow undefined doesn't allow you to do anything with it.
You are right, there are real, tangible benefits to using languages that define behavior for all operations. Nobody is arguing otherwise.