How to use index RTL type

bugs://E26076 was closed as fixed.

I’ll try to get a new build to you later today and would appreciate your feedback to hear idf this is working well now.

There’s still one open issue to support IndexRange as indexer on types that don’t officially support it; probably that will be done later this week as well. String and Array should work now, on all platforms.

RemObjects Elements with Water - 11.0.0.2774 is in your personal downloads.

Got it, thanks.

Since we are in different timezones, it’s already 00:35 AM in China, I will test and provide feedback to you tomorrow.

1 Like

Hi,

The following codes are fine for .net, but not for JAVA. I haven’t tested on other platforms.

        var testStr = "abcdef";
        var str1 = testStr[..1];
        var str2 = testStr[1..];
        var str3 = testStr[^1..];
        var str4 = testStr[..^1];
        var str5 = testStr[1..6];
        
        
        var array = new int[] { 1, 2, 3, 4, 5,6,7,8,9 };
        var array1 = array[..1];
        var array2 = array[1..];
        var array3 = array[^1..];
        var array4 = array[..^1];
        var array5 = array[1..6];

Curious, I’ll retest Java.

Reproduced, logged as bugs://E26163: Range still parses as error on non-.NET platforms