News for hackers. Stuff that matters.
Re:Everything I wish I knew when learning C by jcranmer on Monday November 28, 2022 @07:39PM (#33782070)
The problem is that the traditional wording of C meant that any variable named 'top' was technically UB, because it begins with `to'.

In practical terms, what compilers will do is, if C2y adds a 'togoodness' function, they will add a warning to C89-C2x modes saying "this is now a library function in C2y," or maybe even have an extension to use the new thing in earlier modes. This is what they already do in large part; it's semantic wording to make this behavior allowable without resorting to the full unlimited power of UB.

There are no comments on this comment yet.