[fpc-pascal] Schema Types

Kevan Hashemi hashemi at opensourceinstruments.com
Mon Dec 15 20:23:46 CET 2008


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



More information about the fpc-pascal mailing list