fbpx
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: NET Multidimensional array syntax problem

NET Multidimensional array syntax problem 9 months 2 weeks ago #6147

  Guy Deprez's Avatar Topic Author Guy Deprez Offline Posts: 14
Hi All,

LOCAL aMulti AS STRING[,]
aMulti := STRING[,]{2,2}{ <STRING>{ "X#", "xsharp.info" }, <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
Attachments:

Please Log in or Create an account to join the conversation.

NET Multidimensional array syntax problem 9 months 2 weeks ago #6153

  Chris's Avatar Chris Offline Posts: 1181
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
XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

  • Page:
  • 1