[fpc-pascal] Weird string behavior

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Jul 26 12:27:23 CEST 2016


On Tue, 26 Jul 2016 12:03:21 +0200
Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:

> Mattias Gaertner wrote on Tue, 26 Jul 2016:
> 
> > It seems the Delphi rules for non rawbytestrings are:
> > - Concatenate two same declared strings: append bytes, copy dyn. cp
> >   from left operand. Declared cp of result is left operand.  
> 
> Are you sure it's "append bytes" here and not "append bytes if same  
> dyn cp, otherwise convert to unicodestring, concatenate, and convert  
> back to dyn cp of left operand"?

Now I'm sure. See attachments.


Mattias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp_test2.dpr
Type: application/octet-stream
Size: 398 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160726/bb80dc3e/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cp_test2_result.txt
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160726/bb80dc3e/attachment.txt>


More information about the fpc-pascal mailing list