|
|
|
|
|
by saagarjha
2457 days ago
|
|
> For example, in Zig both signed and unsigned integers have undefined behavior on overflow, contrasted to only signed integers in C. Huh, that's a strange choice. What's the safety story for Zig? Are these always undefined, or is that only in an "unchecked" build? |
|
So, while it is technically correct to say that it has undefined behavior for overflow, the practical reality is quite different.