[fpc-devel] new string - question on usage

Michael Schnell mschnell at lumino.de
Wed Oct 12 14:24:13 CEST 2011


On 10/12/2011 02:09 PM, Sven Barth wrote:
>
> Basically both, as both rely on and use the fact that "AnsiString[i] = 
> AnsiChar" and "SizeOf(AnsiChar) = 1" and also "UnicodeString[i] = 
> UnicodeChar" and "SizeOf(UnicodeChar) = 2".
Yep.

But what I wanted to ask is what happens, if I disregard this, e.g using 
the "wrong" String type as a parameter when calling a function or when 
using "SetCodePage" in a "creative" way. What about Type casting ?

-Michael



More information about the fpc-devel mailing list