News for hackers. Stuff that matters.
Re:D 2.093.0 by pjmlp on Thursday July 16, 2020 @05:48PM (#23864196)
Then I guess C and C++ are toys as well, given there are a couple of breaking changes.

K&R C, gets, Annex K, VLA, gone by now in C17.

gets, exception specifications, external templates, std::auto_ptr now gone, RVO semantics changed, and a couple of other minor semantic changes by C++20.

Re:D 2.093.0 by badsectoracula on Friday July 17, 2020 @12:15PM (#23872115)
Nobody has removed support for gets nor VLA (of those that bothered to add them in the first place) or anything else they provided.

TBH i'm not sure about modern C++20 since that has been a shitshow anyway.

Re:D 2.093.0 by pjmlp on Friday July 17, 2020 @03:34PM (#23874524)
Apparently you have to update yourself with ISO C contents.

Hint, there are more C compilers out there than clang and GCC.

Re:D 2.093.0 by badsectoracula on Saturday July 18, 2020 @12:00AM (#23878778)
I know, i've tried a bunch of them and have several C compilers installed but AFAIK none has removed support for gets or VLA (or anything else they bothered to implement). When i wrote "none" i wasn't referring to the standard but to the actual compilers. I do not care what the standard says is deprecated or to be removed, what i care is what compilers actually do since that is what affects existing code.
Re:D 2.093.0 by MaxBarraclough on Friday July 17, 2020 @06:06AM (#23868996)
Have VLAs really been removed from the C language? I can't find a source for this.
Re:D 2.093.0 by pjmlp on Friday July 17, 2020 @03:39PM (#23874586)
They 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/AoB6LFH...

Re:D 2.093.0 by MaxBarraclough on Saturday July 18, 2020 @06:29AM (#23880406)
Thanks 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/