cpstrnew branch (was Re: [fpc-devel] Freepascal 2.4.0rc1 released)

Florian Klaempfl florian at freepascal.org
Wed Nov 11 10:10:44 CET 2009


Michael Schnell schrieb:
> Martin Schreiber wrote:
>> OK, so you say that the processing of the new and the current UnicodeString 
>> and therefore the RTL and compiler procedures are identical with exception of 
>> the initialization of 4 bytes with a constant? Now that is exciting.
> 
> Of course with any operation that uses two strings as an input, the
> "encoding and character size" DWord (32 Bits, 24 Bits relevant), needs
> to be checked if not equal. But this does not seem like much overhead to me.

Only if the string type is RawByteString. E.g. e procedure taking an
unicode string as parameter needs no additional checking.



More information about the fpc-devel mailing list