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?

Yours, Kevan



--
Kevan Hashemi, President
Open Source Instruments Inc.
www.opensourceinstruments.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to