|
|
|
|
|
by jstimpfle
29 days ago
|
|
As you said, overflow is defined in Cargo, given a specific build type and/or specific build flags. It's not defined in Rust. Just saying that it's defined and then not saying what the definition is, is no different from saying it's undefined. |
|
> Just saying that it's defined and then not saying what the definition is, is no different from saying it's undefined.
It actually is, because, as I said earlier, “undefined behavior” is a term of art with very specific meaning. Regardless, it is defined: there are two possible behaviors, with one guaranteed with that flag and the other chosen by implementations.