xsharp.eu • strong typed arrays in VO dialect
Page 1 of 1

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 9:37 am
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

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 4:34 pm
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

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 4:41 pm
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

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 4:43 pm
by robert
Wolfgang,

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

Robert

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 4:48 pm
by wriedmann
Hi Robert,

similar message:

Code: Select all

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

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 5:08 pm
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

strong typed arrays in VO dialect

Posted: Sun Nov 11, 2018 6:11 pm
by wriedmann
Hi Robert,

stupid me!

Of course, your guessing was right.

I'm very sorry!

Wolfgang