News for hackers. Stuff that matters.
Re:A critique of "How to C in 2016" by chrisseaton on Friday January 15, 2016 @06:11AM (#10908511)
Maybe he's taking it very literally, as I think size_t is literally defined as 'the integer type of the result of the sizeof operator'. So it literally isn't defined as 'an integer capable of holding the >largest array index' as that's not the definition and words they use.
Re:A critique of "How to C in 2016" by viraptor on Friday January 15, 2016 @06:34AM (#10908595)
But if sizeof returns size_t, then your can't have indexes larger than that. Otherwise you could point beyond the largest in-memory object possible. (Using smallest (byte) indexing)

But yes, he may be arguing the definition rather than meaning.