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

Charles D Hixson charleshixsn at earthlink.net
Fri Jul 28 08:41:52 PDT 2006


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.




More information about the Digitalmars-d-learn mailing list