[fpc-devel] new string - question on usage

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Oct 11 11:28:30 CEST 2011


Michael Schnell schrieb:
> On 10/10/2011 11:11 PM, Martin wrote:
>>
>> But that will always just push the issue to another location.
>> Somewhere the change from string to utf8string must be made.
> ??? The "new string" paradigm is all about changing from utf8string (and 
> other such types) to string. Isn't it ?

No.

> The big decision was to do either (a) multiple string types with 
> dedicated encoding 

That's really new: every string type now has a fixed encoding.

or (b) a single string type with dynamic encoding.

That's a RawByteString.

Excessive use of RawByteString is at least as inefficient as using 
Variant for everything :-(

DoDi




More information about the fpc-devel mailing list