Re: [fpc-pascal] Schema Types

2008-12-15 Thread Kevan Hashemi
Dear FPC, fancy:=new(fancy_type); // or something similar, I usually use GetMem not New SetLength(fancy.first, 10, 20); SetLength(fancy.second, 10, 20); SetLength(fancy.third, 300); Nice. I see how it works. Thank you very much (Felipe and Florian) for your answers. I'll try porting some cod

Re: [fpc-pascal] Schema Types

2008-12-15 Thread Kevan Hashemi
Dear Florian, var a : array of array of real; begin setlength(a,num_rows,num_columns); Interesting. What about schema types that are no simple arrays? Like this one: type fancy_type(a,b,c:integer)=record first:array [0..a,0..b] of integer; second:array [0..a,0..b] of real; third

[fpc-pascal] Schema Types

2008-12-15 Thread Kevan Hashemi
x_ptr; num_rows,num_columns:integer; begin readln(num_rows,num_columns); M:=new(M,num_rows,num_columns); So far as I can tell, FPC supports one-dimentional dynamic arrays, but not more complicated schema types. Is that true? Yours, Kevan -- Kevan Hashemi, President Open Source Instrument