[Lazarus] String vs WideString

Ondrej Pokorny lazarus at kluug.net
Tue Aug 15 21:38:34 CEST 2017


On 15.08.2017 21:34, Mattias Gaertner via Lazarus wrote:
> On Tue, 15 Aug 2017 21:22:10 +0200
> Luca Olivetti via Lazarus <lazarus at lists.lazarus-ide.org> wrote:
>
>> [...]
>> *If* code that worked before (and dare I say without abusing the
>> language) suddenly breaks, the bug is in the compiler and not in the
>> library.
> ... unless of course the incompatibility is deliberate and documented.
> In this case it is.

Furthermore, if you use(d) strings for binary data, just replace old 
string for AnsiString/RawByteString (and Char for AnsiChar, PChar for 
PAnsiChar) and you are good to go. Annoying but no big deal.

Ondrej


More information about the Lazarus mailing list