fbpx

strong typed arrays in VO dialect

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
2 months 1 week ago #1 by Wolfgang Riedmann
strong typed arrays in VO dialect was created by Wolfgang Riedmann
Hello,

currently I'm working mostly in VO dialect, and I don't think this will change the next years.

But when working with legacy code, it would be very welcome to use strong typed arrays. Is there any possibility to make them available, even as different datatype, in the VO dialect?

Wolfgang

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

More
2 months 1 week ago - 2 months 1 week ago #2 by Robert van der Hulst
Replied by Robert van der Hulst on topic strong typed arrays in VO dialect
Wolfgang,
What exactly do you mean with "Strong typed arrays".

I think we already support them.
For example

local aString as STRING[]


Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.
Last edit: 2 months 1 week ago by Robert van der Hulst.

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

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
2 months 1 week ago #3 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic strong typed arrays in VO dialect
Hi Robert,

no, I mean this form:
local aData as array of int

In the Core dialect it compiles, in the VO dialect the compiler says
error XS9007: Feature 'ARRAY OF <type>' is not available in the selected dialect VO

Wolfgang

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

More
2 months 1 week ago #4 by Robert van der Hulst
Replied by Robert van der Hulst on topic strong typed arrays in VO dialect
Wolfgang,

Mmmm, strange. Does it work in the Vulcan dialect ?

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
2 months 1 week ago #5 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic strong typed arrays in VO dialect
Hi Robert,

similar message:
error XS9007: Feature 'ARRAY OF <type>' is not available in the selected dialect Vulcan

Wolfgang

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

More
2 months 1 week ago #6 by Robert van der Hulst
Replied by Robert van der Hulst on topic strong typed arrays in VO dialect
Wolfgang

I guess you are using the Vulcan runtime.
In that case the error message us misleading.
This needs the X# runtime.
If you are using the x# runtime then this is a bug.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

  • Wolfgang Riedmann
  • Wolfgang Riedmann's Avatar Topic Author
  • Offline
More
2 months 1 week ago #7 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic strong typed arrays in VO dialect
Hi Robert,

stupid me!

Of course, your guessing was right.

I'm very sorry!

Wolfgang

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