Hi!it is what you call a bug!
I am currently learning Lazarus / Free Pascal (I am familiar with other programming languages), and I ran into the following problem.
This code:
var TestFileName: string; begin for TestFileName in ['abc', 'defghi'] do WriteLn(TestFileName);
produces this output:
abc def
You see, the second string is truncated, it should be defghi.
Now I wonder ...
Is this a bug?
Is it a feature?
Is there an explanation for this behavior?
How do I write string array literals that work?
Thanks for your help.
Regards,
jflipp