I wrote: : layout Pascal [M,N;I,J] = M*N, I*M+J; //row major : layout Fortran[M,N;I,J] = M*N, I+J*N; //column major : float Pascal A[10,20]; : float Fortran B[A.M,A.N]; : ... : for (int i = 0; i < A.M; i++) : for (int j = 0; j < A.N; j++) : A[i,j] = B[i,j]; boo writes: >That looks like Fortran!! How? This is a feature that Fortran does _not_ provide. >I can see why some people might like >these wonderful new features of your hypothetical C9X++, but >I would never use them. I really cannot fathom why you actually >believe that this is more low level. You don't see how letting the programmer specify the address mapping is more low level than letting the compiler choose it? >As far as I understood, >computer memory is not two dimensional, This is *DEAD* wrong about quite a few historically significant computers, like the B6700, Multics, and an obscure machine called the 80286. >and so I would rather >control the layout of multi-dimensional arrays myself. BUT THE NOTATION I JUST DISPLAYED *IS PRECISELY THAT*. The examples I showed were examples of how you *control* the layout yourself! What did you think a layout declaration *was* if not explicit programmer control of layout? >I've done >it before many times, I know how to achieve efficiency, so why >should I let some compiler (created by some pushed up CS dweeb >like you) do my thinking for me? I wasn't suggesting that you should. I WAS SHOWING YOU A NOTATION YOU COULD USE TO DO *EXACTLY* WHAT YOU SAY IT IS YOU WANT TO DO. Like another poster, I was pointing out that Bliss did this before there _was_ a C. >I also find it extremely amusing at how you have turned computer >science into a religion. You are being amused by what is exclusively your own fantasy. -- John �neas Byron O'Keefe; 1921/02/04-1997/09/27; TLG,TLTA,BBTNOTL. Richard A. O'Keefe; RMIT Comp.Sci; http://www.cs.rmit.edu.au/%7Eok