[fpc-pascal] Unicodestrings and Assign(File)

Jürgen Hestermann juergen.hestermann at gmx.de
Tue May 22 07:15:51 CEST 2012



Sven Barth schrieb:
>
> > But I am always wondering why in such situations the type is not set 
> to ShortString.
> > Why use generic String type if all code relies on the fact that it 
> may never change
> > from ShortString to some other string type? It's just asking for 
> trouble and also
> > makes the code less clear.
>
> Estimated guess: the code is from a time where "String = AnsiString" 
> wasn't possible.
>
That would be explanation.
But then it must be *very* old code which shows that a revise is overdue.




More information about the fpc-pascal mailing list