3 ms·
C/C++ is just referring to two things. "In the NFL/NBA, median player salary is greater than $700,000." If you're not giving them this, I don't expect you're r
by oh_sigh 6y ago
C/C++ is just referring to two things. "In the NFL/NBA, median player salary is greater than $700,000."
If you're not giving them this, I don't expect you're reading the rest with a very charitable interpretation. And variable sized arrays weren't really supported in C/C++ until C11/C++11, and this was written in 2001.
- ncmncm 6y agoC++ was not a force in 1987, so it is decidedly peculiar to mention it at all. And, even in 1987, malloc and alloca were both available everywhere. So, no, this is propaganda; not important by itself, except insofar as it unmasks the authors' biases. Annnnd, C99 VLAs as such were not in C++11 at all, and were removed ("made optional") in C11, recognized as a mistake. That does not, of course, mean that C or C++ functions' array arguments were ever restricted to a fixed size.
- kazinator 6y agoVariable sized arrays are supported all the way back to 1978 K&R C and earlier, with dynamic allocation and pointer arithmetic. You just don't have nice syntax for managing them. You can implement a decent Lisp in C. The bullshit about C/C++ is immediately preceded by a claim that everything in "LISP" is represented by lists at the lowest level, which is in contrast with other languages that have fixed arrays, like C/C++. The people who wrote this garbage paper were not properly familiar with Lisp, C or C++.