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 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).
so this may seem pointless - but I can't see any harm in having ShortString already defined (at least, in Delphi mode).
Does Delphi has the `ShortString' identifier?
Yes, it has had it for a long time (since Delphi 2.0 in 1996) ...
(I suppose to get a short string, independent of the `{$H+/-}' setting
Indeed.
If so, the following patch should do it:
--- p/predef.def.orig Fri Apr 22 22:44:07 2005 +++ p/predef.def Thu May 5 23:10:28 2005 @@ -204,6 +204,7 @@
[...]
Will try it over the weekend. Thanks.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/