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)
 
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to