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
NET Multidimensional array syntax problem
- Attachments
-
- MultiDimensionalArray.png (150.72 KiB) Viewed 254 times
NET Multidimensional array syntax problem
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
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
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu