Page 1 of 1

String array initialisation

Posted: Sun Jun 18, 2023 10:15 am
by mnfisher
Just hit an odd bug with array initialisation.

So create an array of strings - x[2][10] for example
Set the initial value to {"abc", "def"} - in v8 this was reported as a syntax error - but in v10 (and v9) - it creates the rather odd expansion of
MX_CHAR FCL_X[2][3] = " \"abc\", \"def\" ";
This (of course) fails at compilation.

Martin

Re: String array initialisation

Posted: Mon Jun 19, 2023 8:56 am
by Steve-Matrix
Thanks. I'll look into this.

Re: String array initialisation

Posted: Mon Jun 19, 2023 9:44 am
by Steve-Matrix
I've fixed that issue. It will be in the next core update.