[fpc-devel]Re: array of char
jonas at zeus.rug.ac.be
Fri Sep 29 09:18:23 CEST 2000
>> CharsDes1:array[0..383]of char=
>> (snipped 4 identical lines...)
>The problem is that, when you Assign something to a var-constant
>(initialized variable array),
>the expression (your long string) will get processed first, before passing
>along to the const/var.
>Thus, the shortstring Concatenation operation truncated your string before
>it is passed to the const.
This is correct.
>It is perfectly fine with your data structure. The problem is the way that
>it is assigned.
>(In other words, you cannot initialize that array directly)
Yes you can, but it's a lot more typing work:
More information about the fpc-devel