is it possible to define a property to access (read/write) a matrix? (I.e., more dimensions than a vector)

Chris Nicholson-Sauls ibisbasenji at gmail.com
Fri Jul 28 11:29:50 PDT 2006


Charles D Hixson wrote:
> Hasan Aljudy wrote:
> 
>>
>>Charles D Hixson wrote:
>>
>>>Mike Parker wrote:
>>>
>>>
>>>>Charles D Hixson wrote:
>>>>
>>>>
>>>>>...
>>
>>Note that float vals[][] in D is actually a jagged array.
>>I think it would be a better idea to store the matrix internally as a
>>one-dimensional array.
>>
> 
> I'm sure you're right.  I'd planned to allocate a static
> array at run time, but apparently that only works for one
> dimensional arrays...in which case (I think) I do just as
> well by using a dynamic array and setting the length before
> I use it.
> 

I'm not sure I understand the limitation, but if you mean what I think you do, might a 
template solve the situation?

-- Chris Nicholson-Sauls



More information about the Digitalmars-d-learn mailing list