|
|
|
|
|
by Dylan16807
3465 days ago
|
|
>he "how likely is it, really?" response to questions of technical correctness has always bothered me. But the question is important in another context: language design. Why is this undefined behavior something that exists in the first place? Objects larger than PTRDIFF_MAX could just not be allowed! This avoids the problem and makes code easier to reason about, with pretty much no downside. |
|