array cast from float[16] to float[4][4]
Jarrett Billingsley
kb3ctd2 at yahoo.com
Thu Jan 10 06:37:06 PST 2008
"Christopher Wright" <dhasenan at gmail.com> wrote in message
news:fm53jh$1r5k$1 at digitalmars.com...
> A float[4][4] is an array of four float[4]s.
> A float[4] is a (length, pointer) pair.
>
> If multidimensional arrays are added (not just arrays of arrays), you'd
> get the syntax float[4,4], most likely.
Actually, float[4][4] is 16 consecutive floats in memory. Static arrays of
static arrays are treated as rectangular arrays.
More information about the Digitalmars-d-learn
mailing list