Question: Compatibility ?

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Question: Compatibility ?

Post by Chris »

Hi Leonid,

Just to be completely clear about this, the option to have 1-based arrays is completely separated from the dialect setting, so you can use it as you like (on or off) in any dialect as you wish. Also it is currently enabled by default, so by default arrays are always 1-based in x#.

Robert's post was about doing a similar thing also on collections/indexers, which can look a bit like arrays due to the similar syntax used, but are very different under the hood. In any case, that would only affect new code written in x# that can use collections. In VO we do not have such things, so this discussion does not affect VO-compatibility with arrays, as those will still always be 1-based by default, as in VO.

Chris
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply