[fpc-devel] new string - question on usage

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Oct 13 02:05:10 CEST 2011


Michael Schnell schrieb:
> On 10/12/2011 02:28 PM, Sven Barth wrote:
>>
>> There will be a conversion. 
> Meaning:
>  - when it is a var parameter, am error message is issued.
>  - when it is a value parameter: conversion is called
>  - type cast will do a conversion

Correct, so far.

>  - assignment will do a conversion (at least if the target encoding ID 
> is not zero.)

... conversion unless the target type is RawByteString, or has the same 
encoding.

>  - the conversion will not happen if the source encoding ID is "Raw"

There is no "Raw" source ID. When source is the empty string, it 
deserves no conversion. Otherwise source *has* an encoding, from the 
last assignment to it.

DoDi




More information about the fpc-devel mailing list