I see now. I thought 0-dimensional arrays could not contain any element at all.
For consistency, wouldn't it be better to thrown an error when myArray[] is used for non-zero-dimensional arrays? Looks like a difficult to find typo. ------------------------------------------ Carlos On Fri, May 30, 2014 at 11:45 PM, Steven G. Johnson <stevenj....@gmail.com> wrote: > > > On Friday, May 30, 2014 5:19:35 PM UTC-4, Carlos Becker wrote: >> >> HI Jacob, >> >> I get that, but which is the reasoning behind myArray[] ? >> why should it return a ref to the 1st element? >> > > Because you can have a 0-dimensional array, and a 0-dimensional array > contains exactly 1 element (the empty product of the dimensions). >