[Lazarus] Making sources compatible with Delphi (but Lazarus is priority)

Marcos Douglas B. Santos md at delfire.net
Wed May 3 02:16:19 CEST 2017


On Tue, May 2, 2017 at 5:30 AM, Juha Manninen via Lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>>>  1. Assign a constant always to a type String variable.
>>
>> What do you mean? Instead of create a constant, is it better create a
>> String variable and assign the string to it?
>
> From FPC's point of view our UTF-8 solution is a hack. In practice it
> means that success in assigning string literals depends on the string
> type.
> This:
>   S := 'Have 🍷 for FPC 💓 Lazarus';
> always works if "S" is a "String". It may not work with other string types.
> It is all explained in the wiki page.

I understood, thanks.

> When all your string data is Unicode then you can code in a Delphi
> compatible way.
> Only the Windows system codepages impose a problem, but I got an
> impression you don't need them now.

I am develop on Windows. What problems do you mean?


Marcos Douglas


More information about the Lazarus mailing list