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

Michael Schnell mschnell at lumino.de
Wed Nov 11 11:00:00 CET 2009


Michael Schnell wrote:
> 
> - RawDWordString
> - RawWordString 
> - RawByteString 

Edit:

add RawQWordString.

OTHO I just learned that all of them are called "RawByteString" (Thus
IMHO just "RawString" is the more appropriate name) and the character
size (= 1, 2, 4, or 8) is handled separately.

In any case it should be provided that something like

Byte1  := RawStr1[10];
Word1  := RawStr2[10];
DWord1 := RawStr4[10];
QWord1 := RawStr8[10];

Works as expected.

Its quite obvious that the conversion is done after taking the value out
of the string if the target type does not match the strings character-size.

-Michael



More information about the fpc-devel mailing list