array cast from float[16] to float[4][4]
Spacen Jasset
spacenjasset at yahoo.co.uk
Thu Jan 10 08:28:14 PST 2008
Jarrett Billingsley wrote:
> "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.
>
>
I see, that is what I wondered. I will however do something more
'proper' for what I want to do finally.
More information about the Digitalmars-d-learn
mailing list