GPC question_(re)

Fri, 24 Oct 1997 21:53:33 +0100 (MET)


Tom:

>Thank you again. Is there a list of all the built-in functions somewhere(as
well
>as all the interfaces)? One more thing, I cannot pass a string[255] variable
to
>a function or return a string[255] from a function. Is this a bug?
>Thanks again.
>Tom
>

First of all: please post general questions about GPC to the GPC list 
, and not to me directly.

GPC is under development, and so is the documentation.  Therefore, AFAIK,
there is no *complete* list of the built-in functions.  However, GPC is
reasonably compatible with Borland Pascal, and the degree of compatibility is
increasing day by day, as new versions are released.  BTW, do you use the
last beta release, dates Oct 1, 1997?  If not, get it from the GPC homepage.

Regarding your second question, I think you need to define a string type,
like

type
  str255 = string [255];

function Foo : str255;   
begin
  Foo = 'Foo';
end;

This should work.  Note that 'string' has a different meaning in GPC than in
Borland Pascal.  To avoid unexpected effects, use strings of fixed size, such
as my str255 -- or study the GPC documentation about "variable length
strings".

Best wishes,

  Jesper Lund



Jesper Lund (jel@hha.dk)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es