Frank: thank you for your explanations.
Coming from Kylix, I've never used vectors with pointers before. Could you give me an example routine for declaring and referencing-dereferencing this objects? I would need, besides vectors, also matrices up to 3 (M x N x P elements) dimensions.
Also, could I simply declare a schema in the main program, and then call all procedures from it with a normal statement (e.g. merce (Vett) ), like in the GPC demo program about schemata?
thank you, regards
Silvio
The solution to both problems is the same: Declare a pointer variable (before the subroutine), and allocate it with `New' (e.g., `New (Vett, nelem)'). Of course, you then have to dereference it explicitly with `^' in every usage. Alternatively, you could pass it as a parameter to the procedure, like:
Procedure merce (var Vett: TVecDob);