strong typed arrays in VO dialect

This forum is meant for questions and discussions about the X# language and tools
Post Reply
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

strong typed arrays in VO dialect

Post by wriedmann »

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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4523
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

strong typed arrays in VO dialect

Post by robert »

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
robert@xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

strong typed arrays in VO dialect

Post by wriedmann »

Hi Robert,

no, I mean this form:

Code: Select all

local aData as array of int
In the Core dialect it compiles, in the VO dialect the compiler says

Code: Select all

error XS9007: Feature 'ARRAY OF <type>' is not available in the selected dialect VO
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4523
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

strong typed arrays in VO dialect

Post by robert »

Wolfgang,

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

Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

strong typed arrays in VO dialect

Post by wriedmann »

Hi Robert,

similar message:

Code: Select all

error XS9007: Feature 'ARRAY OF <type>' is not available in the selected dialect Vulcan
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
robert
Posts: 4523
Joined: Fri Aug 21, 2015 10:57 am
Location: Netherlands

strong typed arrays in VO dialect

Post by robert »

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
robert@xsharp.eu
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

strong typed arrays in VO dialect

Post by wriedmann »

Hi Robert,

stupid me!

Of course, your guessing was right.

I'm very sorry!

Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Post Reply