[fpc-pascal] 2D Dynamic arrays and BlockRead

J├╝rgen Hestermann juergen.hestermann at gmx.de
Wed Dec 8 17:54:37 CET 2010


>> STat = Array[0..W-1] Of Single ; { Static array }
>> DST = Array Of STat ; { One dimension dynamic, the other static }
>> D2T = Array Of Array Of Single ; { Two dynamic dimensions }
>>
>> STat always means the address starting with STat[0] (context 
>> independend).
>> Also DST always means the address where DST[0].
> Nope, there is a difference between DST and DST[0]. DST won't give you 
> the first element.
Yes, you are right. I missread the definition. What I had in mind was 
that the first level of the array being static and only the second one 
dynamic but actualy it was vice versa.




More information about the fpc-pascal mailing list