<p>Am 21.05.2012 07:17 schrieb "Jürgen Hestermann" <<a href="mailto:juergen.hestermann@gmx.de">juergen.hestermann@gmx.de</a>>:<br>
><br>
><br>
><br>
> Tomas Hajny schrieb:<br>
>><br>
>> On Sun, May 20, 2012 14:40, Jürgen Hestermann wrote:<br>
>> <br>
>>><br>
>>> Move(s[1],TextRec(t).Name,Length(s));<br>
>>> That would be a bug IMO when S is longer than 255 characters.<br>
>>> "Move" does no range check.<br>
>>> <br>
>><br>
>> No, unit System (which uses these include files) is never compiled with $H+.<br>
><br>
> Ok. If that can be guaranteed.<br>
> But I am always wondering why in such situations the type is not set to ShortString.<br>
> Why use generic String type if all code relies on the fact that it may never change<br>
> from ShortString to some other string type? It's just asking for trouble and also<br>
> makes the code less clear.</p>
<p>Estimated guess: the code is from a time where "String = AnsiString" wasn't possible.</p>
<p>Regards,<br>
Sven</p>