4 ms·
Have VLAs really been removed from the C language? I can't find a source for this.
by MaxBarraclough 6y ago
Have VLAs really been removed from the C language? I can't find a source for this.
- pjmlp 6y agoThey were made optional in C11, so any C compiler that was yet to implement them doesn't need to actually bother implementing them to achieve compliance with more recent ISO versions. If you look beyond clang and gcc, there are a couple of candidates, specially on proprietary embedded toolchains. https://groups.google.com/forum/m/#!topic/comp.std.c/AoB6LFHcd88 https://groups.google.com/forum/m/#!topic/comp.std.c/AoB6LFH...
- MaxBarraclough 6y agoThanks for the link. Interesting reasoning around the choice of the 'negative' __STDC_NO_VLA__ macro, rather than a 'positive' macro like __STDC_VLA__. See also StackExchange discussion on the question: https://softwareengineering.stackexchange.com/q/314838/ https://softwareengineering.stackexchange.com/q/314838/