News for hackers. Stuff that matters.
Re:The C23 edition of Modern C is now available for free by codr7 on Tuesday October 15, 2024 @04:57PM (#41853029)
Nice, when you know the length at compile time, which is rarely from my experience.

The holy grail is runtime access to the length, which means an array would have to be backed by something more elaborate.

Re:The C23 edition of Modern C is now available for free by uecker on Wednesday October 16, 2024 @03:28AM (#41856489)
Oh, it also work for runtime length:

https://godbolt.org/z/PnaWWcK9o

Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @03:38AM (#41856543)
Now try that on a compiler without -fsanitize=bounds, yet full ISO C compliant.
Re:The C23 edition of Modern C is now available for free by uecker on Wednesday October 16, 2024 @07:10AM (#41857759)
You can still access the size which is what the parent was asking for. And please tell me how you would try this on an ISO compliant compiler for D.
Re:The C23 edition of Modern C is now available for free by pjmlp on Wednesday October 16, 2024 @10:13AM (#41859239)
D has bounds checking, and isn't a ISO language.