Yes, something was missed when the feature of member dynamic arrays in a Type was added to FreeBASIC, for the particular case of fixed-length string dynamic array: their type seems non-completely defined by the compiler:
No problem for a fixed-length static array in a Type.
Yes, something was missed when the feature of member dynamic arrays in a Type was added to FreeBASIC, for the particular case of fixed-length string dynamic array: their type seems non-completely defined by the compiler:
No problem for a fixed-length static array in a Type.
Highlighting example:
Compiler results:
Therefore all keywords using the length of such a string are failing (LEN for example).
For more details, see sancho3's topic "Problem with len()":
https://www.freebasic.net/forum/viewtopic.php?f=3&t=26023
Last edit: fxm (freebasic.net) 2017-10-16
I guess this is related to [#650] or at least the issue mentioned in the comments there:
https://www.freebasic.net/forum/viewtopic.php?f=3&t=21188
Related
Bugs: #650
This bug for a fixed-length string dynamic array affects only a non-static member using it. That works right for a static member and a non member:
Compiler output:
Program output:
Last edit: fxm (freebasic.net) 2017-10-18