News for hackers. Stuff that matters.
Re:Single assignment C by StefanKarpinski on Sunday December 22, 2013 @11:51AM (#6950767)
Everyone always trots this out when talking about multidimensional array programming in C, but it's effectively useless because it only works for statically declared, fixed-size arrays. Since those never occur when writing real numerical code, the fact that the compiler in this one very particular case can turn x[i][j] into x[i*s+j] for me is essentially useless for any real work with dynamically allocated, variably sized multidimensional arrays.
Re:Single assignment C by mikeash on Sunday December 22, 2013 @12:01PM (#6950784)
In which case the correct statement would have been something like "Multidimensional arrays in C are not very useful in practice," rather than "they don't exist".