In article 200112130041.BAA01865@goedel.fjf.gnu.de, Frank Heckenbach frank@g-n-u.de writes
Martin Liddle wrote:
What should the trim function do? It seems to me that under gpc it removes trailing spaces from a string. Under Delphi it removes leading and trailing spaces. Unfortunately I don't have any Turbo Pascal documentation to hand (I assume trim is a Borlandism).
Nope, it's EP (6.7.6.7), and the correct behaviour is indeed to remove only trailing spaces.
Since it's only a built-in function, not a keyword, it's easy to overload it in a Delphi compatibility unit if someone wants Delphi's incorrect behaviour ...
Thanks for the clarification (and to the other posters).
For the record, I have built 20011202 and compiler our application without any obvious problems. Well done to all concerned.