Kevan Hashemi schrieb: > Dear FPC, > > I'm considering movingn from GPC to FPC. One thing I like very much > about GPC is its schema types. I can declare a matrix like this: > > matrix_type(num_rows,num_columns:integer)= > array [1..num_rows,1..num_columns] of real; > > and then create a new matrix with: > > var > M:^matrix_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?
FPC supports multi dimensional dyn. arrays with var a : array of array of real; begin setlength(a,num_rows,num_columns); ... _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal