Strings in GPC (was: GPC question)

Sat, 25 Oct 1997 13:06:09 +0200 (MEST)


According to Jesper Lund:
> 
> GPC is under development, and so is the documentation.  Therefore, AFAIK,
> there is no *complete* list of the built-in functions.

The GNU Texinfo online documentation of recent beta versions of GPC
contains a complete list of all built-in identifiers - most of them
without explanation, sorry, but it's a start.

> Regarding your second question, I think you need to define a string type,
> like
> 
> type
>   str255 = string [255];

Correct.  If you say "Function Foo: String", GPC accepts it as a string of
length 255 but warns about it (unless you are in `--borland-pascal' mode).

According to Extended Pascal, strings are written with parentheses
("Str255 = String ( 255 )"), but GPC also accepts UCSD/Borland syntax
("Str255 = String [ 255 ]").  In the future we *might* change this such
that GPC produces an Extended Pascal string (unlimited length, 8 bytes
overhead) with "(...)" but a Borland Pascal string (limited to 255 chars,
1 byte overhead) with "[...]".

Greetings,

    Peter

 Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer
peter.gerwinski@uni-essen.de - http://home.pages.de/~peter.gerwinski/ [971005]
 maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005]


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

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