News for hackers. Stuff that matters.
Re:How to find size of an array in C without sizeof by Dylan16807 on Monday December 26, 2016 @11:22PM (#13261260)
>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.

Re:How to find size of an array in C without sizeof by verdax_1 on Tuesday December 27, 2016 @02:32AM (#13261808)
I like the way you're thinking, but that sort of thing probably doesn't get past a committee. "Hey we might not be able to think of an application but that doesn't mean our users won't have a legitimate reason for doing it ... Motion passed."