[fpc-devel] new strings, rawbyte type, but what about "raw" encoding

Marco van de Voort marcov at stack.nl
Tue Oct 11 04:02:27 CEST 2011


In our previous episode, Martin said:
 
> What encoding does a pchar have?

pchar and char match string.

> what happens (or is intended to happen), if I cast a string to pchar, 
> before handing it over as param?

Nothing. If you try to cast another type, it probably does a conversion and
create a temp, but I didn't try. 

IIRC it does give an error if the granularity doesn't match (e.g.
string=unicodestring thus pchar=punicodechar and you typecast e.g. a
utf8string)
 



More information about the fpc-devel mailing list