Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
NowthatisTV
Level 7

Possible precedence table error

See here:
http://sdkdocs.roku.com/display/sdkdoc/ ... +Reference
Topic: 3.7 Operators


Now, let's see the following example:
array[1]()

Following the table (array[1])() is executed before the array[1]. The correct would be:
1-array[1]
2-array[1]()

Therefore, a table is correct only if join in the same row, the ".", "()" and "[]". Like this:

So, in the same precedence and left-associative.

Compare to C Language table:


So my suggestion sounds correct.
0 Kudos