On Tue, 15 Aug 2017, Mattias Gaertner via Lazarus wrote:
On Tue, 15 Aug 2017 12:02:28 +0200
Michael Schnell via Lazarus <lazarus@lists.lazarus-ide.org> wrote:
On 15.08.2017 11:52, Michael Van Canneyt via Lazarus wrote:
> This cannot be solved properly except by duplicating the classes unit.
Sorry to disagree, but IMHO this can only be solved properly by defining
an additional fully dynamically encoded string type and use same for
TStrings (see ->
http://wiki.freepascal.org/not_Delphi_compatible_enhancement_for_Unicode_Support
)
It does not explain what the characters of DynamicString are, does it?
I was just going to write that.
The problem of the element size is circumvented by simply not digging into it.
What does S[2] mean in your proposal ? Is it 1, 2, 4 or even 8 bytes ?
Michael.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus