Multidimensional array
Oleksiy
oleksiy.pavlyuk at gmail.com
Fri Jul 5 09:01:14 PDT 2013
> Fixing it so that the sizes for static arrays were read
> left-to-right would
> definitely be a usability improvement, but even if we were to
> decide that the
> whole "read the type outward from the variable name" was
> unimportant enough to
> make the change desirable, it would silently break all kinds of
> code at this
> point, so we're stuck with it.
>
The way D declares static arrays makes sense and I was actually
trying to access elements in the same fashion until I realized
that it's reversed. I than found a remark in Andrei's book
pointing out the difference.
Thanks for your reply Jonathan.
--Oleksiy
More information about the Digitalmars-d-learn
mailing list