xsharp.eu • NET Multidimensional array syntax problem
Page 1 of 1

NET Multidimensional array syntax problem

Posted: Mon Sep 10, 2018 5:58 am
by Anonymous
Hi All,

LOCAL aMulti AS STRING[,]
aMulti := STRING[,]{2,2}{ <STRING>{ "X#", "xsharp.eu" }, <STRING>{ "C#", "microsoft.com" } }

It compiles correctly and runs without errors but aMulti is not filled with the data (NULL values)

Syntax problem?

(X#Core dialect, tested in XIDE)
See picture for details.
Guy

NET Multidimensional array syntax problem

Posted: Mon Sep 10, 2018 11:22 am
by Chris
Hi Guy,

Thanks for the report, it seems the compiler creates the array with the first part of the statement (aMulti := STRING[,]{2,2}) which initializes the array and ignores the rest, that's why you get NULL values only.

I'll open a report about this, in general the array initialization aspect needs some improvements indeed. For now please specify multi-dim array elements one by one.

Chris