On Tue, Dec 24, 2013 at 7:08 PM, Sven Barth <[email protected]> wrote:
> Am 24.12.2013 15:34 schrieb "Marcos Douglas" <[email protected]>:
>
>
>> Sorry if I say something crazy, but what do you think to use UTF-16 on
>> {mode delphi} and UTF-8 in {mode fpc}?
>
> That is already the case with mode delphiunicode. But the big problem are
> classes and their inheritance. Take TStringList for example. Let's assume
> it's declared with String=AnsiString and you override it in a unit with
> String=UnicodeString then you'll get problems with overloads/overrides,
> because UnicodeString <> AnsiString.

Hmm, you're right. Understood.

>
> The mode concept is all good and well, but here it breaks down... :(

So, if the {mode} continue to be a way, I think it should be used on
"platform level", not per "unit level".
Even if the programmer can to change this, he will change in all code.
Thinking better, this is to be used on compiler level, not source
level.

Regards,
Marcos Douglas

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to