Graeme Geldenhuys schrieb:
Op 2011-02-14 20:03, Jürgen Hestermann het geskryf:
Do you mean that the compiler should convert the strings as needed in
the background (as between different integer types and/or floats) so
that you can call ListBox1.Items.Add(x) with x beeing UTF8string or
UTF16string or...?
Yes, but in reality how often would such conversions happen? TStringList
(used inside a TListBox) would use UnicodeString types. The encoding of
that type would default to whatever platform you compiled on. ie: under
Linux it would default to UTF-8, and under Windows it would default to
UTF-16
You realize the problems, that may result from the different char type
of such an target-specific string type?
IMO such strings should be encapsulated in a (polymorphic) class, that
only allows for char-type independent operations.
DoDi
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus