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

Hasan Aljudy hasan.aljudy at gmail.com
Fri Jul 28 15:39:34 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.
> 

uhh .. static array means array allocated at compile time ^_^'



More information about the Digitalmars-d-learn mailing list