Am 13.10.2011 11:28, schrieb Felipe Monteiro de Carvalho:
On Thu, Oct 13, 2011 at 11:24 AM, Sven Barth
<pascaldra...@googlemail.com>  wrote:
I think he ment that if such a feature is introduced it would be a natural
conclusion to define "string = unicodestring" on Windows and "string =
utf8string" for Unix in the RTL and the FCL

? I am totally lost as to what this has to do with my proposal. My
proposal is to add a minimum facility to port UTF-8 based code which
makes heavy use of the "string" keyword. It says nothing about which
string the RTL should use.


In one of your mails you had the example of the units "system" and "classes" which define "string" as aliased to the string type "banana". So if such a feature is added (and as Michael wrote, if it's added it's added the powerful way) then it seems likely that it will be used in the RTL and the FCL as well to (hopefully) simplyfy the problem of having UTF-16 on Windows and UTF-8 on Windows and OEM/Ansi on OS/2 and DOS. Thus those two libraries (RTL and FCL) need to be able to cope with a different string type.

So it has nothing to do directly with the proposal of that feature or Lazarus, but with the consequences or further usecases of this feature.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to