Prof A Olowofoyeku (The African Chief) wrote:
On 5 May 2005 at 23:12, Frank Heckenbach wrote:
Prof A Olowofoyeku (The African Chief) wrote:
Would it be possible to predefine "ShortString" in GPC? (as "String [255]"). I appreciate that GPC doesn't yet have longstrings
You mean short strings?
No, I meant long strings (AnsiString).
GPC has long strings, up to length 2^31 on 32 bit systems, and 2^63 on 64 bit systems, according to ANSI/ISO Pascal.
So what you mean is the particular string implementation of Delphi which it misnames `AnsiString' (since AFAIK no ANSI standard describes these strings, certainly not the ANSI Pascal standards).
GPC already (in a manner of speaking) has short strings, since "String" is treated as a string of 255 chars (at least, that is what the GPC warnings say).
Of course, GPC allows strings of capacity 255 (or any other smaller capacity than its maximum). So what I meant is the particular string implementation of UCSD and Borland Pascal.
Frank